mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-04-19 03:03:32 -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:
|
for hat in data.required_hats:
|
||||||
if hat is not HatType.NONE:
|
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:
|
if data.hookshot:
|
||||||
add_rule(location, lambda state: can_use_hookshot(state, w))
|
add_rule(location, lambda state: can_use_hookshot(state, w))
|
||||||
|
|||||||
Reference in New Issue
Block a user