Skip to content

Commit

Permalink
fixed widget duplication issue and boss hp in 2nd phase
Browse files Browse the repository at this point in the history
  • Loading branch information
NightLightLumie committed May 22, 2024
1 parent ca27e28 commit d7afef6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/Boss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ export class Boss extends Enemy {
]),
new BossCommand(this, [
{key: "HPThreshold", value: [0.01], args: [], conditions: []},
{key: "HPChange", value: [815000], args: [], conditions: []},
{key: "refillHP", value: [], args: [], conditions: []},
{key: "nextScript", value: [], args: [], conditions: []},
]),
Expand All @@ -590,6 +591,7 @@ export class Boss extends Enemy {
],
[
new BossCommand(this, [
{key: "prorate", value: [], args: [], conditions: []},
{key: "wait", value: [2500], args: [], conditions: []},
{key: "nohit", value: [], args: [], conditions: [false]},
{key: "wait", value: [250], args: [], conditions: []},
Expand All @@ -606,7 +608,7 @@ export class Boss extends Enemy {
{key: "shootCorner", value: [3], args: [], conditions: []},
{key: "wait", value: [150], args: [], conditions: []},
{key: "wait", value: [6500], args: [], conditions: []},
{key: "loop", value: [1], args: [], conditions: []},
{key: "loop", value: [2], args: [], conditions: []},
]),
new BossCommand(this, [
{key: "wait", value: [3500], args: [], conditions: []},
Expand Down
Empty file added src/scenes/ShopScene.ts
Empty file.
5 changes: 5 additions & 0 deletions src/scenes/Thunder.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export class Thunder{
constructor () {

}
}
2 changes: 1 addition & 1 deletion src/scenes/UpgradeScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export class UpgradeScene extends BaseScene {
}
this.dataHandler.returnWidget(index);
if(this.dataHandler.myWidgets[index][2] < this.dataHandler.myWidgets[index][1]){
if(this.currentWidgetButton.veiled) {
if(this.currentWidgetButton.veiled && (this.currentIndex == index)) {
this.currentWidgetButton.unveil();
}
}
Expand Down

0 comments on commit d7afef6

Please sign in to comment.