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:
PinkSwitch 2024-06-26 06:19:16 -05:00 committed by GitHub
parent 07dd8f0671
commit 6c54b3596b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 3 deletions

View File

@ -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