mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Ocarina of Time 7.0 (#1277)
## What is this fixing or adding? - Adds the majority of OoTR 7.0 features: - Pot shuffle, Freestanding item shuffle, Crate shuffle, Beehive shuffle - Key rings mode - Dungeon shortcuts to speed up dungeons - "Regional" shuffle for dungeon items - New options for shop pricing in shopsanity - Expanded Ganon's Boss Key shuffle options - Pre-planted beans - Improved Chest Appearance Matches Contents mode - Blue Fire Arrows - Bonk self-damage - Finer control over MQ dungeons and spawn position randomization - Several bugfixes as a result of the update: - Items recognized by the server and valid starting items are now in a 1-to-1 correspondence. In particular, starting with keys is now supported. - Entrance randomization success rate improved. Hopefully it is now at 100%. Co-authored-by: Zach Parks <zach@alliware.com>
This commit is contained in:
@@ -88,7 +88,7 @@ def write_block_section(start, key_skip, in_data, patch_data, is_continue):
|
||||
# xor_range is the range the XOR key will read from. This range is not
|
||||
# too important, but I tried to choose from a section that didn't really
|
||||
# have big gaps of 0s which we want to avoid.
|
||||
def create_patch_file(rom, file, xor_range=(0x00B8AD30, 0x00F029A0)):
|
||||
def create_patch_file(rom, xor_range=(0x00B8AD30, 0x00F029A0)):
|
||||
dma_start, dma_end = rom.get_dma_table_range()
|
||||
|
||||
# add header
|
||||
@@ -169,9 +169,7 @@ def create_patch_file(rom, file, xor_range=(0x00B8AD30, 0x00F029A0)):
|
||||
patch_data = bytes(patch_data.buffer)
|
||||
patch_data = zlib.compress(patch_data)
|
||||
|
||||
# save the patch file
|
||||
with open(file, 'wb') as outfile:
|
||||
outfile.write(patch_data)
|
||||
return patch_data
|
||||
|
||||
|
||||
# This will apply a patch file to a source rom to generate a patched rom.
|
||||
|
||||
Reference in New Issue
Block a user