Use unique hashtable for entrance randomizer.

This commit is contained in:
LLCoolDave
2017-05-25 21:41:37 +02:00
parent 6ef621fe66
commit 8e7a8d7a8d
2 changed files with 14 additions and 2 deletions

5
Rom.py
View File

@@ -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