From 51dd233ac7d585a3e1eda851040333de214b37e2 Mon Sep 17 00:00:00 2001 From: codemann8 Date: Thu, 16 Jan 2025 00:34:36 -0600 Subject: [PATCH] Merged in DR v1.4.8 --- ItemList.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ItemList.py b/ItemList.py index bc4f90a9..9e7720c1 100644 --- a/ItemList.py +++ b/ItemList.py @@ -355,6 +355,16 @@ def generate_itempool(world, player): or (item.map and world.mapshuffle[player] not in ['none', 'nearby']) or (item.compass and world.compassshuffle[player] not in ['none', 'nearby']))]) + 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)