mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-23 20:33:22 -07:00
Hat Logic Fix
This commit is contained in:
@@ -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