From 64f742fb427364f727cd18c4c7d19efbd0d02974 Mon Sep 17 00:00:00 2001 From: CookieCat Date: Mon, 13 May 2024 20:08:16 -0400 Subject: [PATCH] change state.count to state.has --- worlds/ahit/Rules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worlds/ahit/Rules.py b/worlds/ahit/Rules.py index 42d1f6a547..94306b5d27 100644 --- a/worlds/ahit/Rules.py +++ b/worlds/ahit/Rules.py @@ -39,7 +39,7 @@ def can_use_hat(state: CollectionState, world: "HatInTimeWorld", hat: HatType) - if world.options.HatItems: return state.has(hat_type_to_item[hat], world.player) - return state.count("Yarn", world.player) >= get_hat_cost(world, hat) + return state.has("Yarn", world.player, get_hat_cost(world, hat)) def get_hat_cost(world: "HatInTimeWorld", hat: HatType) -> int: @@ -74,7 +74,7 @@ def has_paintings(state: CollectionState, world: "HatInTimeWorld", count: int, a if get_difficulty(world) >= Difficulty.MODERATE: return True - return state.count("Progressive Painting Unlock", world.player) >= count + return state.has("Progressive Painting Unlock", world.player, count) def zipline_logic(world: "HatInTimeWorld") -> bool: