From 6bd299790e08a85610caa1aa8cb04a6fa5317d8a Mon Sep 17 00:00:00 2001 From: Kara Alexandra Date: Sat, 2 Oct 2021 20:42:45 -0700 Subject: [PATCH] Fix bomb-only text writing to rom, add warning on not finding sprite --- Rom.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Rom.py b/Rom.py index bd722c3e..8238a09b 100644 --- a/Rom.py +++ b/Rom.py @@ -908,10 +908,10 @@ def patch_rom(world, rom, player, team, enemized, is_mystery=False): return 0x53+int(num), 0x79+int(num) def credits_string_top(string): - return map(lambda c: convert_char_to_credits(c)[0], string) + return list(map(lambda c: convert_char_to_credits(c)[0], string)) def credits_string_bot(string): - return map(lambda c: convert_char_to_credits(c)[1], string) + return list(map(lambda c: convert_char_to_credits(c)[1], string)) credits_total = 216 if world.keydropshuffle[player]: @@ -1897,7 +1897,9 @@ def apply_rom_settings(rom, beep, color, quickswap, fastmenu, disable_music, spr rom.write_byte(0x65561, {'red': 0x05, 'blue': 0x0D, 'green': 0x19, 'yellow': 0x09}[color]) # write link sprite if required - if sprite is not None: + if sprite is None: + logging.getLogger('').info('No sprite found.') + else: write_sprite(rom, sprite) # sprite author credits