Pokemon Emerald: Move magma grunt (#3836)

This commit is contained in:
Bryce Wilson 2024-08-28 23:14:08 -07:00 committed by GitHub
parent 97c313c1c4
commit ab5b986716
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -114,6 +114,14 @@ class PokemonEmeraldProcedurePatch(APProcedurePatch, APTokenMixin):
def write_tokens(world: "PokemonEmeraldWorld", patch: PokemonEmeraldProcedurePatch) -> None:
# TODO: Remove when the base patch is updated to include this change
# Moves an NPC to avoid overlapping people during trainersanity
patch.write_token(
APTokenTypes.WRITE,
0x53A298 + (0x18 * 7) + 4, # Space Center 1F event address + 8th event + 4-byte offset for x coord
struct.pack("<H", 11)
)
# Set free fly location
if world.options.free_fly_location:
patch.write_token(