Fix Random sprite on event bug where a sprite that was not in user pool was added.

This commit is contained in:
CaitSith2 2020-10-28 18:31:07 -07:00
parent c5f3b47327
commit d3ee3a84c1
1 changed files with 0 additions and 5 deletions

5
Rom.py
View File

@ -1620,11 +1620,6 @@ def apply_rom_settings(rom, beep, color, quickswap, fastmenu, disable_music, spr
rom.write_byte(0x6FA30, {'red': 0x24, 'blue': 0x2C, 'green': 0x3C, 'yellow': 0x28}[color])
rom.write_byte(0x65561, {'red': 0x05, 'blue': 0x0D, 'green': 0x19, 'yellow': 0x09}[color])
# write link sprite if required
if sprite:
sprite = Sprite(sprite) if os.path.isfile(sprite) else Sprite.get_sprite_from_name(sprite, local_random)
sprite.write_to_rom(rom)
if z3pr:
def buildAndRandomize(option_name, mode):
options = {