Skip to content

Commit

Permalink
Yoshi's Island: Fix client giving victory randomly (ArchipelagoMW#3586)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
PinkSwitch authored Jun 26, 2024
1 parent 07dd8f0 commit 6c54b35
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions worlds/yoshisisland/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ async def game_watcher(self, ctx: "SNIContext") -> None:

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:
Expand All @@ -101,6 +99,10 @@ async def game_watcher(self, ctx: "SNIContext") -> None:
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

Expand Down

0 comments on commit 6c54b35

Please sign in to comment.