We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 390a19c commit f6b476dCopy full SHA for f6b476d
src/lib/ActionInputStateMachine.svelte.ts
@@ -41,6 +41,10 @@ export class ActionInputVerifier {
41
else if (action.includes('EjectBalloon')) this.held_balloons--;
42
else if (action.includes('EjectBunny')) this.held_bunnies--;
43
else if (action.includes('EjectTote')) this.held_totes--;
44
+ } else {
45
+ if (action.includes('EjectBalloon') && this.held_balloons <= 0) return false;
46
+ else if (action.includes('EjectBunny') && this.held_bunnies <= 0) return false;
47
+ else if (action.includes('EjectTote') && this.held_totes <= 0) return false;
48
}
49
if (action.includes('ScoreBalloon')) this.held_balloons--;
50
else if (action.includes('ScoreBunny')) this.held_bunnies--;
0 commit comments