Merged in DR v1.2.0.13

This commit is contained in:
codemann8
2023-03-14 17:48:42 -05:00
9 changed files with 36 additions and 31 deletions

4
Rom.py
View File

@@ -38,7 +38,7 @@ from source.dungeon.RoomList import Room0127
JAP10HASH = '03a63945398191337e896e5771f77173'
RANDOMIZERBASEHASH = 'c27bdd316ea8312214643e0a4ea32c10'
RANDOMIZERBASEHASH = 'baa1135c06e1e38d4005ba3c7acb977b'
class JsonRom(object):
@@ -1716,6 +1716,8 @@ def patch_rom(world, rom, player, team, enemized, is_mystery=False):
rom.name.extend([0] * (21 - len(rom.name)))
rom.write_bytes(0x7FC0, rom.name)
rom.write_bytes(0x138010, bytearray(__version__, 'utf8'))
# set player names
for p in range(1, min(world.players, 255) + 1):
rom.write_bytes(0x195FFC + ((p - 1) * 32), hud_format_text(world.player_names[p][team]))