Skip to content

Commit

Permalink
Merge pull request #83 from sheenhm/main
Browse files Browse the repository at this point in the history
  • Loading branch information
choiao0 authored Oct 20, 2023
2 parents 86c343f + 0b240b9 commit 61bd228
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions src/entity/Ship.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,6 @@ public final void update() {
else
this.spriteType = SpriteType.Ship;
}
public final void updatep_2() {
this.skillCooldown.checkFinished();
if (!this.destructionCooldown.checkFinished())
this.spriteType = SpriteType.ShipDestroyed;
else
this.spriteType = SpriteType.Ship2;
}

/**
* Switches the ship to its destroyed state.
Expand Down
2 changes: 1 addition & 1 deletion src/screen/GameScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ else if (this.enemyShipSpecialExplosionCooldown.checkFinished()) {

this.ship.update();
if (this.gameState.getMode() == 2) {
this.ship2.updatep_2();
this.ship2.update();
}

this.enemyShipFormation.update();
Expand Down

0 comments on commit 61bd228

Please sign in to comment.