feat: free_lamp_cone as experimental feature

This commit is contained in:
aerinon
2025-11-14 14:37:46 -07:00
parent 5ce9a3e297
commit f4021afac0
6 changed files with 14 additions and 18 deletions

5
Rom.py
View File

@@ -42,7 +42,7 @@ from source.enemizer.Enemizer import write_enemy_shuffle_settings
JAP10HASH = '03a63945398191337e896e5771f77173'
RANDOMIZERBASEHASH = '1e87ad01a54f1c15e2ec16a79a9bcc20'
RANDOMIZERBASEHASH = 'f327962e7f2872c80fd75b35c6f2c985'
class JsonRom(object):
@@ -811,7 +811,8 @@ def patch_rom(world, rom, player, team, is_mystery=False):
rom.write_bytes(0x6D323, [0x00, 0x00, 0xe4, 0xff, 0x08, 0x0E])
# set light cones
rom.write_byte(0x180038, 0x01 if world.sewer_light_cone[player] else 0x00)
lamp_cone_flags = (0x1 if world.sewer_light_cone[player] else 0) | (0x10 if world.free_lamp_cone[player] else 0)
rom.write_byte(0x180038, lamp_cone_flags)
GREEN_TWENTY_RUPEES = 0x47
TRIFORCE_PIECE = ItemFactory('Triforce Piece', player).code