diff --git a/worlds/ahit/DeathWishLocations.py b/worlds/ahit/DeathWishLocations.py index 5c18485995..8f8a41c29a 100644 --- a/worlds/ahit/DeathWishLocations.py +++ b/worlds/ahit/DeathWishLocations.py @@ -167,7 +167,7 @@ def create_dw_regions(world: "HatInTimeWorld"): spaceship = world.multiworld.get_region("Spaceship", world.player) dw_map: Region = create_region(world, "Death Wish Map") entrance = connect_regions(spaceship, dw_map, "-> Death Wish Map", world.player) - add_rule(entrance, lambda state: state.has("Time Piece", world.player, world.options.DWTimePieceRequirement.value)) + add_rule(entrance, lambda state: state.has("Time Piece", world.player, world.options.DWTimePieceRequirement)) if world.options.DWShuffle: # Connect Death Wishes randomly to one another in a linear sequence diff --git a/worlds/ahit/Regions.py b/worlds/ahit/Regions.py index e1c9159f94..0f03dd1ae6 100644 --- a/worlds/ahit/Regions.py +++ b/worlds/ahit/Regions.py @@ -318,7 +318,7 @@ def create_regions(world: "HatInTimeWorld"): ev_area = create_region_and_connect(w, "Dead Bird Studio - Elevator Area", "DBS -> Elevator Area", dbs) post_ev = create_region_and_connect(w, "Dead Bird Studio - Post Elevator Area", "DBS -> Post Elevator Area", dbs) connect_regions(basement, ev_area, "DBS Basement -> Elevator Area", p) - if world.options.LogicDifficulty.value >= int(Difficulty.EXPERT): + if world.options.LogicDifficulty >= int(Difficulty.EXPERT): connect_regions(basement, post_ev, "DBS Basement -> Post Elevator Area", p) # ------------------------------------------- SUBCON FOREST --------------------------------------- # @@ -404,10 +404,10 @@ def create_regions(world: "HatInTimeWorld"): create_rift_connections(w, create_region(w, "Time Rift - Balcony")) create_rift_connections(w, create_region(w, "Time Rift - Deep Sea")) - if w.options.ExcludeTour.value == 0: + if not w.options.ExcludeTour: create_rift_connections(w, create_region(w, "Time Rift - Tour")) - if w.options.Tasksanity.value > 0: + if w.options.Tasksanity: create_tasksanity_locations(w) connect_regions(cruise_ship, badge_seller, "CS -> Badge Seller", p) @@ -440,7 +440,7 @@ def create_rift_connections(world: "HatInTimeWorld", region: Region): def create_tasksanity_locations(world: "HatInTimeWorld"): ship_shape: Region = world.multiworld.get_region("Ship Shape", world.player) id_start: int = TASKSANITY_START_ID - for i in range(world.options.TasksanityCheckCount.value): + for i in range(world.options.TasksanityCheckCount): location = HatInTimeLocation(world.player, f"Tasksanity Check {i+1}", id_start+i, ship_shape) ship_shape.locations.append(location) diff --git a/worlds/ahit/__init__.py b/worlds/ahit/__init__.py index 33e3053a1b..a45d56973e 100644 --- a/worlds/ahit/__init__.py +++ b/worlds/ahit/__init__.py @@ -45,11 +45,8 @@ class HatInTimeWorld(World): """ game = "A Hat in Time" - data_version = 1 - item_name_to_id = {name: data.code for name, data in item_table.items()} location_name_to_id = get_location_names() - options_dataclass = AHITOptions options: AHITOptions item_name_groups = relic_groups