Skip to content

Commit

Permalink
Add new popup option
Browse files Browse the repository at this point in the history
  • Loading branch information
PoryGone committed Feb 11, 2024
1 parent 7ad8bb6 commit 7599c25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions worlds/smw/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ async def handle_trap_queue(self, ctx):
if active_boss[0] != 0x00:
return

if ctx.receive_option == 1 or (ctx.receive_option == 2 and ((next_trap.flags & 1) != 0)):
if ctx.receive_option == 1 or (ctx.receive_option == 2 and ((next_trap.flags & 1) != 0)) or (ctx.receive_option == 3 and ((item.flags & 1) != 0 and item.item != 0xBC0002)):
self.add_message_to_queue(message)


Expand Down Expand Up @@ -498,7 +498,7 @@ async def game_watcher(self, ctx):
color(ctx.player_names[item.player], 'yellow'),
ctx.location_names[item.location], recv_index, len(ctx.items_received)))

if ctx.receive_option == 1 or (ctx.receive_option == 2 and ((item.flags & 1) != 0)):
if ctx.receive_option == 1 or (ctx.receive_option == 2 and ((item.flags & 1) != 0)) or (ctx.receive_option == 3 and ((item.flags & 1) != 0 and item.item != 0xBC0002)):
if item.item != 0xBC0012 and item.item not in trap_rom_data:
# Don't send messages for Boss Tokens
item_name = ctx.item_names[item.item]
Expand Down
3 changes: 2 additions & 1 deletion worlds/smw/Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ class DisplayReceivedItemPopups(Choice):
option_none = 0
option_all = 1
option_progression = 2
default = 2
option_progression_minus_yoshi_eggs = 3
default = 3


class JunkFillPercentage(Range):
Expand Down

0 comments on commit 7599c25

Please sign in to comment.