Versioning update

This commit is contained in:
aerinon
2023-03-14 16:05:28 -06:00
parent b2b3d789ca
commit 636819ffc0
4 changed files with 13 additions and 4 deletions

4
Rom.py
View File

@@ -37,7 +37,7 @@ from source.dungeon.RoomList import Room0127
JAP10HASH = '03a63945398191337e896e5771f77173'
RANDOMIZERBASEHASH = '15edc718abbbd94ee34e15ae24b219a3'
RANDOMIZERBASEHASH = '29863ca305a8474c452cd13b3f921898'
class JsonRom(object):
@@ -1608,6 +1608,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]))