Skip to content

Commit c3df644

Browse files
committed
Minigame Check
1 parent e854ab7 commit c3df644

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

source/archipelago/traps/games/APPongTrapState.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ class APPongTrapState extends PongGameState {
205205
updateInstructionText("YOU SURVIVED THE PONG TRAP! Returning to game...");
206206
new FlxTimer().start(2.0, function(timer) {
207207
archipelago.APItem.APPongTrap.onTrapStateExit();
208+
archipelago.APInfo.inMinigame = archipelago.APInfo.APMinigame.None;
208209
if (previousState != null) {
209210
LoadingState.loadAndSwitchState(Type.createInstance(previousState, []));
210211
} else {
@@ -217,6 +218,7 @@ class APPongTrapState extends PongGameState {
217218
updateInstructionText("AI WINS! PREPARE TO DIE!");
218219
new FlxTimer().start(2.0, function(timer) {
219220
archipelago.APItem.APPongTrap.onTrapStateExit();
221+
archipelago.APInfo.inMinigame = archipelago.APInfo.APMinigame.None;
220222
TrapDeathHandler.forceDeath("Lost Pong Challenge", Type.createInstance(previousState, []), Type.createInstance(previousState, []));
221223
});
222224
}

source/archipelago/traps/games/APUnoTrapState.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ class APUnoTrapState extends UnoTestState {
9494
// Player won - return to previous state
9595
updateInstructionText("YOU WON THE UNO TRAP! Returning to game...");
9696
new FlxTimer().start(2.0, function(timer) {
97+
archipelago.APInfo.inMinigame = archipelago.APInfo.APMinigame.None;
9798
if (previousState != null) {
9899
LoadingState.loadAndSwitchState(Type.createInstance(previousState, []));
99100
} else {
@@ -105,6 +106,7 @@ class APUnoTrapState extends UnoTestState {
105106
// Player lost - force death
106107
updateInstructionText("AI WINS UNO! PREPARE TO DIE!");
107108
new FlxTimer().start(2.0, function(timer) {
109+
archipelago.APInfo.inMinigame = archipelago.APInfo.APMinigame.None;
108110
TrapDeathHandler.forceDeath("Lost UNO Challenge", Type.createInstance(previousState, []), Type.createInstance(previousState, []));
109111
});
110112
}

0 commit comments

Comments
 (0)