Rom update and added dungeon events

This commit is contained in:
aerinon
2020-01-21 14:01:57 -07:00
parent 6659965cd4
commit 744f9dfea7
4 changed files with 9 additions and 8 deletions

View File

@@ -23,7 +23,7 @@ from Fill import distribute_items_cutoff, distribute_items_staleness, distribute
from ItemList import generate_itempool, difficulties, fill_prizes from ItemList import generate_itempool, difficulties, fill_prizes
from Utils import output_path, parse_player_names from Utils import output_path, parse_player_names
__version__ = '0.0.1-pre' __version__ = '0.0.2-pre'
def main(args, seed=None): def main(args, seed=None):
if args.outputpath: if args.outputpath:

View File

@@ -847,7 +847,8 @@ dungeon_events = [
'Suspicious Maiden', 'Suspicious Maiden',
'Revealing Light', 'Revealing Light',
'Ice Block Drop', 'Ice Block Drop',
'Zelda Pickup' 'Zelda Pickup',
'Zelda Drop Off'
] ]
flooded_keys_reverse = { flooded_keys_reverse = {

10
Rom.py
View File

@@ -22,7 +22,7 @@ from EntranceShuffle import door_addresses, exit_ids
JAP10HASH = '03a63945398191337e896e5771f77173' JAP10HASH = '03a63945398191337e896e5771f77173'
#RANDOMIZERBASEHASH = '4e291b6f6227de32db2735423889a780' RANDOMIZERBASEHASH = 'c1361fcf13239f8677bacc6f9bc5e9dd'
class JsonRom(object): class JsonRom(object):
@@ -124,8 +124,8 @@ class LocalRom(object):
# verify md5 # verify md5
patchedmd5 = hashlib.md5() patchedmd5 = hashlib.md5()
patchedmd5.update(self.buffer) patchedmd5.update(self.buffer)
# if RANDOMIZERBASEHASH != patchedmd5.hexdigest(): if RANDOMIZERBASEHASH != patchedmd5.hexdigest():
# raise RuntimeError('Provided Base Rom unsuitable for patching. Please provide a JAP(1.0) "Zelda no Densetsu - Kamigami no Triforce (Japan).sfc" rom to use as a base.') raise RuntimeError('Provided Base Rom unsuitable for patching. Please provide a JAP(1.0) "Zelda no Densetsu - Kamigami no Triforce (Japan).sfc" rom to use as a base.')
def write_crc(self): def write_crc(self):
crc = (sum(self.buffer[:0x7FDC] + self.buffer[0x7FE0:]) + 0x01FE) & 0xFFFF crc = (sum(self.buffer[:0x7FDC] + self.buffer[0x7FE0:]) + 0x01FE) & 0xFFFF
@@ -2081,9 +2081,9 @@ def patch_shuffled_dark_sanc(world, rom, player):
rom.write_bytes(0x180262, [unknown_1, unknown_2, 0x00]) rom.write_bytes(0x180262, [unknown_1, unknown_2, 0x00])
# 24B116 and 20BA72 # 24B116 and 20BAD8
compass_r_addr = 0x123116 # a9 90 24 8f 9a c7 7e compass_r_addr = 0x123116 # a9 90 24 8f 9a c7 7e
compass_w_addr = 0x103a72 # e2 20 ad 0c 04 c9 00 d0 compass_w_addr = 0x103ad8 # e2 20 ad 0c 04 c9 00 d0
def compass_code_good(rom): def compass_code_good(rom):

File diff suppressed because one or more lines are too long