Skip to content

Commit

Permalink
speed up collect, will be obsolete after ArchipelagoMW#3786
Browse files Browse the repository at this point in the history
  • Loading branch information
qwint committed Sep 5, 2024
1 parent d331228 commit c399fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/hk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ def collect(self, state, item: HKItem) -> bool:
if change:
for effect_name, effect_value in item_effects.get(item.name, {}).items():
state.prog_items[item.player][effect_name] += effect_value
if item.name in {"Left_Mothwing_Cloak", "Right_Mothwing_Cloak"}:
if change and item.name in {"Left_Mothwing_Cloak", "Right_Mothwing_Cloak"}:
if state.prog_items[item.player].get('RIGHTDASH', 0) and \
state.prog_items[item.player].get('LEFTDASH', 0):
(state.prog_items[item.player]["RIGHTDASH"], state.prog_items[item.player]["LEFTDASH"]) = \
Expand Down

0 comments on commit c399fb6

Please sign in to comment.