Reduce tier of triforce pieces when goal is high

This commit is contained in:
2026-01-23 21:41:45 -06:00
parent ddda8aeddf
commit 0f7253c94e

5
Rom.py
View File

@@ -1480,6 +1480,11 @@ def patch_rom(world, rom, player, team, is_mystery=False, rom_header=None):
if world.bombbag[player]:
rom.write_byte(loot_icons + 0x52, 0x0B) # bomb bag is major
triforce_piece_ids = [0x6B, 0x6C]
if world.treasure_hunt_count[player] > 20:
for triforce_piece_id in triforce_piece_ids:
rom.write_byte(loot_icons + triforce_piece_id, 0x04)
crystal_ids = [0x20, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6]
if world.goal[player] in ['ganon', 'dungeons', 'crystals', 'trinity']:
crystal_category = 0x0D