Skip to content

Commit

Permalink
AttributeError fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CookieCat45 committed Sep 2, 2023
1 parent 127ce1d commit 1f916e8
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 4 deletions.
52 changes: 52 additions & 0 deletions worlds/ahit/DeathWishLocations.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@

death_wishes = [
"Beat the Heat",
"So You're Back From Outer Space",
"Mafia's Jumps",
"Collect-a-thon",
"She Speedran from Outerspace",
"Vault Codes in the Wind",
"Encore! Encore!",
"Rift Collapse: Mafia of Cooks",
"Snatcher's Hit List",
"Snatcher Coins in Mafia Town"

"Security Breach",
"10 Seconds until Self-Destruct",
"The Great Big Hootenanny",
"Killing Two Birds",
"Rift Collapse: Dead Bird Studio",
"Snatcher Coins in Battle of the Birds",
"Zero Jumps",

"Speedrun Well",
"Boss Rush",
"Quality Time with Snatcher",
"Breaching the Contract",
"Rift Collapse: Sleepy Subcon",
"Snatcher Coins in Subcon Forest",

"Bird Sanctuary",
"Wound-Up Windmill",
"The Illness has Speedrun",
"Rift Collapse: Alpine Skyline",
"Snatcher Coins in Alpine Skyline",
"Camera Tourist",

"The Mustache Gauntlet",
"No More Bad Guys",

"Seal the Deal",
"Rift Collapse: Deep Sea",
"Cruisin' for a Bruisin'",

"Community Map: Rhythm Jump Studio",
"Community Map: Twilight Travels",
"Community Map: The Mountain Rift",
"Snatcher Coins in Nyakuza Metro",
]

dw_prereqs = {
"Snatcher's Hit List": ["Beat the Heat"],

}
Empty file added worlds/ahit/DeathWishRules.py
Empty file.
2 changes: 0 additions & 2 deletions worlds/ahit/Regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,6 @@ def randomize_act_entrances(world: World):
for e in candidate.entrances.copy():
e.parent_region.exits.remove(e)
e.connected_region.entrances.remove(e)
del e.parent_region
del e.connected_region

entrance = world.multiworld.get_entrance(act_entrances[region.name], world.player)
reconnect_regions(entrance, world.multiworld.get_region(act_chapters[region.name], world.player), candidate)
Expand Down
1 change: 0 additions & 1 deletion worlds/ahit/Rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ def set_rules(world: World):
region: Region = entrance.connected_region
access_rules: typing.List[typing.Callable[[CollectionState], bool]] = []
entrance.parent_region.exits.remove(entrance)
del entrance.parent_region

# Entrances to this act that we have to set access_rules on
entrances: typing.List[Entrance] = []
Expand Down
1 change: 0 additions & 1 deletion worlds/ahit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ def create_items(self):
self.calculate_yarn_costs()
yarn_pool: typing.List[Item] = create_multiple_items(self, "Yarn", self.multiworld.YarnAvailable[self.player].value)

# 1/5 is progression balanced
for i in range(int(len(yarn_pool) * (0.01 * self.multiworld.YarnBalancePercent[self.player].value))):
yarn_pool[i].classification = ItemClassification.progression

Expand Down

0 comments on commit 1f916e8

Please sign in to comment.