Skip to content

Commit 572ed1a

Browse files
authored
Merge pull request #2 from ScipioWright/animal-well-fix-pr
Some more fixes
2 parents 4ec15a1 + a2039a6 commit 572ed1a

File tree

3 files changed

+11
-16
lines changed

3 files changed

+11
-16
lines changed

worlds/animal_well/options.py

+2
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ class WheelHopping(Choice):
198198
default = 0
199199
visibility = Visibility.none
200200

201+
201202
class WeirdTricks(Toggle):
202203
"""
203204
Included temporarily for backward compatibility.
@@ -207,6 +208,7 @@ class WeirdTricks(Toggle):
207208
display_name = "Weird Tricks"
208209
visibility = Visibility.none
209210

211+
210212
@dataclass
211213
class AnimalWellOptions(PerGameCommonOptions):
212214
goal: Goal

worlds/animal_well/region_data.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ class AWData(NamedTuple):
186186
lname.egg_normal: # hidden wall in lower left of first bubble room
187187
AWData(AWType.location),
188188
lname.egg_dazzle: # little obstacle course, feels like the bubble jump tutorial?
189-
AWData(AWType.location, [[iname.bubble], [iname.disc, iname.wheel], [iname.disc_hop_hard], [iname.wheel_hard]]),
189+
AWData(AWType.location, [[iname.bubble], [iname.disc, iname.wheel], [iname.disc_hop_hard],
190+
[iname.wheel_hard]]),
190191
rname.fish_tube_room: # enter at the save room fish pipe, the rooms with all the fish pipes
191192
AWData(AWType.region, [[iname.bubble]]),
192193
lname.egg_sunset: # break the spikes in the room to the right of the fish warp
@@ -418,7 +419,8 @@ class AWData(NamedTuple):
418419
AWData(AWType.region, [[iname.ball_trick_medium], [iname.bubble, iname.tanking_damage],
419420
[iname.disc, iname.tanking_damage, iname.precise_tricks]]),
420421
rname.bear_chameleon_room_2:
421-
AWData(AWType.region, [[iname.bubble_long, iname.tanking_damage], [iname.disc_hop_hard, iname.tanking_damage]]),
422+
AWData(AWType.region, [[iname.bubble_long, iname.tanking_damage],
423+
[iname.disc_hop_hard, iname.tanking_damage]]),
422424
},
423425
rname.bear_crow_rooms: {
424426
rname.bear_shadow_egg_spot: # get across the room with the lifters and the miasma
@@ -470,7 +472,8 @@ class AWData(NamedTuple):
470472
},
471473
rname.bear_upper_phone_room: {
472474
rname.bear_above_chameleon:
473-
AWData(AWType.region, [[iname.yoyo], [iname.ball, iname.ball_trick_medium, iname.obscure_tricks], [iname.slink, iname.bubble, iname.obscure_tricks]]),
475+
AWData(AWType.region, [[iname.yoyo], [iname.ball, iname.ball_trick_medium, iname.obscure_tricks],
476+
[iname.slink, iname.bubble, iname.obscure_tricks]]),
474477
},
475478
rname.bear_above_chameleon: { # includes the screens to the right of it
476479
lname.egg_swan: # wake one chinchilla, lure upper one right, run left

worlds/animal_well/region_scripts.py

+3-13
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,9 @@ def convert_tech_reqs(reqs: List[List[str]], options: AnimalWellOptions) -> List
8484
# these convert [[wheel_hop], [disc]] to either [[wheel], [disc]] or [[disc]]
8585
# and convert [[disc_hop_hard]] to either [[disc]] or []
8686
reqs = [
87-
[iname.wheel if item == iname.wheel_hop else item for item in sublist]
87+
[iname.wheel if item in [iname.wheel_hop, iname.wheel_climb] else item for item in sublist]
8888
for sublist in reqs
89-
if not (iname.wheel_hop in sublist and not options.wheel_tricks)
90-
]
91-
reqs = [
92-
[iname.wheel if item == iname.wheel_climb else item for item in sublist]
93-
for sublist in reqs
94-
if not (iname.wheel_climb in sublist and not options.wheel_tricks)
89+
if not (iname.wheel_hop in sublist and not options.wheel_tricks)
9590
]
9691
reqs = [
9792
[iname.wheel if item == iname.wheel_hard else item for item in sublist]
@@ -116,7 +111,7 @@ def convert_tech_reqs(reqs: List[List[str]], options: AnimalWellOptions) -> List
116111
reqs = [
117112
[iname.ball if item == iname.ball_trick_medium else item for item in sublist]
118113
for sublist in reqs
119-
if not (iname.ball_trick_medium in sublist and options.ball_throwing not in (BallThrowing.option_advanced, BallThrowing.option_expert))
114+
if not (iname.ball_trick_medium in sublist and options.ball_throwing < BallThrowing.option_advanced)
120115
]
121116
reqs = [
122117
[iname.ball if item == iname.ball_trick_hard else item for item in sublist]
@@ -143,11 +138,6 @@ def convert_tech_reqs(reqs: List[List[str]], options: AnimalWellOptions) -> List
143138
for sublist in reqs
144139
if not (iname.water_bounce in sublist and not options.obscure_tricks)
145140
]
146-
reqs = [
147-
[None if item == iname.tanking_damage else item for item in sublist]
148-
for sublist in reqs
149-
if not (iname.tanking_damage in sublist and not options.tanking_damage)
150-
]
151141
return reqs
152142

153143

0 commit comments

Comments
 (0)