From 3799f49014864c794819d1614409538c46812b43 Mon Sep 17 00:00:00 2001 From: CookieCat Date: Sun, 12 May 2024 18:15:41 -0400 Subject: [PATCH] assert item --- worlds/ahit/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/worlds/ahit/__init__.py b/worlds/ahit/__init__.py index 1ecfaa7552..fc37307c1a 100644 --- a/worlds/ahit/__init__.py +++ b/worlds/ahit/__init__.py @@ -229,6 +229,7 @@ class HatInTimeWorld(World): shop_item_names: Dict[str, str] = {} for name in self.shop_locs: loc: Location = self.multiworld.get_location(name, self.player) + assert loc.item item_name: str if loc.item.classification is ItemClassification.trap and loc.item.game == "A Hat in Time": item_name = get_shop_trap_name(self)