mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-10-06 02:14:45 -07:00
Hat Logic Fix
This commit is contained in:
1 parent
b5475ac242
commit
6d9bfbcf36
1 file changed
+1
-1
@@ -230,7 +230,7 @@ def set_rules(world: World):
|
||||
|
||||
for hat in data.required_hats:
|
||||
if hat is not HatType.NONE:
|
||||
add_rule(location, lambda state: can_use_hat(state, w, hat))
|
||||
add_rule(location, lambda state, hat=hat: can_use_hat(state, w, hat))
|
||||
|
||||
if data.hookshot:
|
||||
add_rule(location, lambda state: can_use_hookshot(state, w))
|
||||
|
||||
Reference in new issue
Block a user