From 0e54140d02c314937bbe2466b2ad14e383bdd1e2 Mon Sep 17 00:00:00 2001 From: CookieCat Date: Mon, 13 May 2024 17:23:54 -0400 Subject: [PATCH] rename test file --- worlds/ahit/DeathWishRules.py | 3 +-- worlds/ahit/test/{TestActs.py => test_acts.py} | 0 2 files changed, 1 insertion(+), 2 deletions(-) rename worlds/ahit/test/{TestActs.py => test_acts.py} (100%) diff --git a/worlds/ahit/DeathWishRules.py b/worlds/ahit/DeathWishRules.py index 96638cf8db..4070017eab 100644 --- a/worlds/ahit/DeathWishRules.py +++ b/worlds/ahit/DeathWishRules.py @@ -189,8 +189,7 @@ def add_dw_rules(world: "HatInTimeWorld", loc: Location): add_rule(loc, lambda state: can_use_hookshot(state, world)) for hat in data.required_hats: - if hat is not HatType.NONE: - add_rule(loc, lambda state, h=hat: can_use_hat(state, world, h)) + add_rule(loc, lambda state, h=hat: can_use_hat(state, world, h)) for misc in data.misc_required: add_rule(loc, lambda state, item=misc: state.has(item, world.player)) diff --git a/worlds/ahit/test/TestActs.py b/worlds/ahit/test/test_acts.py similarity index 100% rename from worlds/ahit/test/TestActs.py rename to worlds/ahit/test/test_acts.py