fix: Aga1 defeatable in rain state for glitched mode

fix: Terrorpin AI code excised
This commit is contained in:
aerinon
2024-01-03 11:58:17 -07:00
parent 1590c351a4
commit 37fd1ab5ef
3 changed files with 7 additions and 2 deletions

6
Rom.py
View File

@@ -40,7 +40,7 @@ from source.enemizer.Enemizer import write_enemy_shuffle_settings
JAP10HASH = '03a63945398191337e896e5771f77173'
RANDOMIZERBASEHASH = '65b433946c72953780d82cdc0bb8fe8e'
RANDOMIZERBASEHASH = '3640741f6e51a98a0d2962f6bc03636a'
class JsonRom(object):
@@ -1300,7 +1300,9 @@ def patch_rom(world, rom, player, team, is_mystery=False):
rom.write_byte(0x1800A3, 0x01) # enable correct world setting behaviour after agahnim kills
rom.write_byte(0x1800A4, 0x01 if world.logic[player] != 'nologic' else 0x00) # enable POD EG fix
rom.write_byte(0x180042, 0x01 if world.save_and_quit_from_boss else 0x00) # Allow Save and Quit after boss kill
rom.write_byte(0x180358, 0x01 if (world.logic[player] in ['owglitches', 'nologic']) else 0x00)
glitches_enabled = world.logic[player] in ['owglitches', 'hybridglitches', 'nologic']
rom.write_byte(0x180358, 0x01 if glitches_enabled else 0x00)
rom.write_byte(0x18008B, 0x01 if glitches_enabled else 0x00)
# remove shield from uncle
rom.write_bytes(0x6D253, [0x00, 0x00, 0xf6, 0xff, 0x00, 0x0E])