Text Plando Support

This commit is contained in:
Fabian Dill
2021-01-02 16:44:58 +01:00
parent 938ccccbd4
commit 07df9b9e80
6 changed files with 23 additions and 2 deletions

7
Rom.py
View File

@@ -2208,6 +2208,13 @@ def write_strings(rom, world, player, team):
tt['menu_start_2'] = "{MENU}\n{SPEED0}\n≥@'s house\n Dark Chapel\n{CHOICE3}"
tt['menu_start_3'] = "{MENU}\n{SPEED0}\n≥@'s house\n Dark Chapel\n Mountain Cave\n{CHOICE2}"
for at, text in world.plando_texts[player].items():
if at not in tt:
raise Exception(f"No text target \"{at}\" found.")
else:
tt[at] = text
rom.write_bytes(0xE0000, tt.getBytes())
credits = Credits()