OoT: trap display rework

Traps from all games now disguise themselves as OoT items
Traps all display "[Player] is a FOOL!" when picked up
This commit is contained in:
espeon65536
2022-05-25 17:52:49 -05:00
committed by Fabian Dill
parent a66b11e6ec
commit 1c231b703a
2 changed files with 12 additions and 12 deletions

View File

@@ -567,7 +567,7 @@ class OOTWorld(World):
self.fake_items.extend(item for item in self.itempool if item.index and self.is_major_item(item))
if self.ice_trap_appearance in ['junk_only', 'anything']:
self.fake_items.extend(item for item in self.itempool if
item.index and not self.is_major_item(item) and item.name != 'Ice Trap')
item.index and not self.type == 'Shop' and not self.is_major_item(item) and item.name != 'Ice Trap')
# Kill unreachable events that can't be gotten even with all items
# Make sure to only kill actual internal events, not in-game "events"
@@ -803,8 +803,8 @@ class OOTWorld(World):
self.hint_data_available.wait()
with i_o_limiter:
# Make ice traps appear as other random items
ice_traps = [loc.item for loc in self.get_locations() if loc.item.name == 'Ice Trap']
# Make traps appear as other random items
ice_traps = [loc.item for loc in self.get_locations() if loc.item.trap]
for trap in ice_traps:
trap.looks_like_item = self.create_item(self.world.slot_seeds[self.player].choice(self.fake_items).name)