Skip to content

Commit

Permalink
disable reset when everything's zero
Browse files Browse the repository at this point in the history
  • Loading branch information
seleb committed Jul 14, 2024
1 parent fff86f5 commit 43f6107
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/GameScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2137,6 +2137,12 @@ MISS: ${log.filter((i) => i === 'MISS').length}
const btnReset = new BtnText(
'RESET',
() => {
if (
!this.actions.attacks.length &&
!this.actions.scans.length &&
!this.actions.shield
)
return;
this.screenFilter.flash(0.3, 400, eases.circOut);
this.actions.attacks.length = 0;
this.actions.scans.length = 0;
Expand Down

0 comments on commit 43f6107

Please sign in to comment.