mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Use unique hashtable for entrance randomizer.
This commit is contained in:
5
Rom.py
5
Rom.py
@@ -6,7 +6,7 @@ from Text import KingsReturn_texts, Sanctuary_texts, Kakariko_texts, Blacksmiths
|
||||
import random
|
||||
|
||||
|
||||
def patch_rom(world, rom, quickswap=False, beep='normal'):
|
||||
def patch_rom(world, rom, hashtable, quickswap=False, beep='normal'):
|
||||
# patch items
|
||||
for location in world.get_locations():
|
||||
if location.name == 'Ganon':
|
||||
@@ -230,6 +230,9 @@ def patch_rom(world, rom, quickswap=False, beep='normal'):
|
||||
# set heart beep rate
|
||||
write_byte(rom, 0x180033, {'off': 0x00, 'half': 0x40, 'quarter': 0x80, 'normal': 0x20}[beep])
|
||||
|
||||
# store hash table for main menu hash
|
||||
write_bytes(rom, 0x181000, hashtable)
|
||||
|
||||
return rom
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user