mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 04:01:32 -06:00
Yoshi's Island: Fix client giving victory randomly (#3586)
* Create d * Create d * Delete worlds/mariomissing/d * Delete mariomissing directory * Create d * Add files via upload * Delete worlds/mariomissing/d * Delete worlds/mariomissing directory * Add files via upload * Delete worlds/sai2 directory * fix dumb client bug
This commit is contained in:
@@ -87,9 +87,7 @@ class YoshisIslandSNIClient(SNIClient):
|
||||
|
||||
if game_mode is None:
|
||||
return
|
||||
elif goal_flag[0] != 0x00:
|
||||
await ctx.send_msgs([{"cmd": "StatusUpdate", "status": ClientStatus.CLIENT_GOAL}])
|
||||
ctx.finished_game = True
|
||||
|
||||
elif game_mode[0] not in VALID_GAME_STATES:
|
||||
return
|
||||
elif item_received[0] > 0x00:
|
||||
@@ -101,6 +99,10 @@ class YoshisIslandSNIClient(SNIClient):
|
||||
ctx.rom = None
|
||||
return
|
||||
|
||||
if goal_flag[0] != 0x00:
|
||||
await ctx.send_msgs([{"cmd": "StatusUpdate", "status": ClientStatus.CLIENT_GOAL}])
|
||||
ctx.finished_game = True
|
||||
|
||||
new_checks = []
|
||||
from .Rom import location_table
|
||||
|
||||
|
Reference in New Issue
Block a user