Merge remote-tracking branch 'remotes/door_rando/DoorDev' into Dev

This commit is contained in:
compiling
2020-01-11 09:17:41 +11:00
15 changed files with 213 additions and 43 deletions

7
Rom.py
View File

@@ -1254,8 +1254,11 @@ def patch_rom(world, player, rom, enemized):
# set rom name
# 21 bytes
from Main import __version__
rom.name = bytearray('ER{0}_{1}_{2:09}\0'.format(__version__.split('-')[0].replace('.','')[0:3], player, world.seed), 'utf8')
rom.write_bytes(0x7FC0, rom.name[0:21])
# todo: change to DR when Enemizer is okay with DR
rom.name = bytearray('ER_{0}_{1:09}\0'.format(__version__[0:7], world.seed), 'utf8')
assert len(rom.name) <= 21
rom.write_bytes(0x7FC0, rom.name)
rom.name[0] = ord('D')
# Write title screen Code
hashint = int(rom.get_hash(), 16)