Get sprite json from vt.alttp.run

Fix plando's sprite support

Always write both sprite and pallet (using the default if a sprite does
not include a pallet)
so that the adjuster still works.
This commit is contained in:
Kevin Cathcart
2017-12-17 17:30:50 -05:00
parent 823657bc26
commit ce30913121
4 changed files with 13 additions and 15 deletions

View File

@@ -9,7 +9,7 @@ import sys
from BaseClasses import World
from Regions import create_regions
from EntranceShuffle import link_entrances, connect_entrance, connect_two_way, connect_exit
from Rom import patch_rom, LocalRom, write_string_to_rom
from Rom import patch_rom, LocalRom, Sprite, write_string_to_rom
from Rules import set_rules
from Dungeons import create_dungeons
from Items import ItemFactory
@@ -75,7 +75,7 @@ def main(args):
logger.info('Patching ROM.')
if args.sprite is not None:
sprite = bytearray(open(args.sprite, 'rb').read())
sprite = Sprite(args.sprite)
else:
sprite = None