Skip to content

Commit

Permalink
Merge pull request #161 from KrisDavie/glitch_fixes
Browse files Browse the repository at this point in the history
Glitch mode fixes
  • Loading branch information
aerinon authored Oct 10, 2024
2 parents e12c4f6 + eaa21ed commit 5225ce9
Show file tree
Hide file tree
Showing 4 changed files with 175 additions and 97 deletions.
13 changes: 11 additions & 2 deletions ItemList.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,6 @@ def generate_itempool(world, player):
# In HMG force swamp smalls in pots to allow getting out of swamp palace
placed_items['Swamp Palace - Trench 1 Pot Key'] = 'Small Key (Swamp Palace)'
placed_items['Swamp Palace - Pot Row Pot Key'] = 'Small Key (Swamp Palace)'
pool.remove('Small Key (Swamp Palace)')
pool.remove('Small Key (Swamp Palace)')

start_inventory = list(world.precollected_items)
for item in precollected_items:
Expand Down Expand Up @@ -369,6 +367,17 @@ def generate_itempool(world, player):
or (item.bigkey and world.bigkeyshuffle[player])
or (item.map and world.mapshuffle[player])
or (item.compass and world.compassshuffle[player]))])

if world.logic[player] == 'hybridglitches' and world.pottery[player] not in ['none', 'cave']:
keys_to_remove = 2
to_remove = []
for wix, wi in enumerate(world.itempool):
if wi.name == 'Small Key (Swamp Palace)' and wi.player == player:
to_remove.append(wix)
if keys_to_remove == len(to_remove):
break
for wix in reversed(to_remove):
del world.itempool[wix]

# logic has some branches where having 4 hearts is one possible requirement (of several alternatives)
# rather than making all hearts/heart pieces progression items (which slows down generation considerably)
Expand Down
1 change: 0 additions & 1 deletion OverworldGlitchRules.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@
('TR Pegs Ledge Clip', 'Death Mountain TR Pegs Area', 'Death Mountain TR Pegs Ledge'),
('Mountain Pass Ledge Clip', 'Mountain Pass Area', 'Mountain Pass Ledge'),
('Mountain Pass Entry Clip', 'Kakariko Pond Area', 'Mountain Pass Entry'),
('Bat Cave River Clip', 'Blacksmith Area', 'Blacksmith Ledge'),
('Desert Keep Clip', 'Maze Race Area', 'Desert Ledge Keep'),
('Desert Ledge Clip', 'Maze Race Area', 'Desert Ledge'),
('Maze Race Prize Clip', 'Maze Race Area', 'Maze Race Prize'),
Expand Down
1 change: 1 addition & 0 deletions Text.py
Original file line number Diff line number Diff line change
Expand Up @@ -2027,6 +2027,7 @@ def setDefaultText(self):
text['ganon_phase_3_alt'] = CompressedTextMapper.convert("Got wax in your ears? I cannot die!")
# 190
text['sign_east_death_mountain_bridge'] = CompressedTextMapper.convert("Glitched\ntournament\nwinners\n{HARP}\n"
"~~~No Logic 2024~~~\ntam\n\n"
"~~~HMG 2023~~~\ntam\n\n"
"~~~No Logic 2022~~~\nChexhuman\n\n"
"~~~HMG 2021~~~\nKrithel\n\n"
Expand Down
Loading

0 comments on commit 5225ce9

Please sign in to comment.