Bumped the major revision number because there are a few breaking changes and deprecated functions.
reading the Japan 1.0 ROM and writing the patched game was moved out of the pyz3r.alttpr() class, as they really didn't belong there.
Before:
python
seed = pyz3r.alttpr(
randomizer='item',
hash='zDvxWLLEMa'
)
jpn10rom = seed.read_rom("base_rom/Zelda no Densetsu - Kamigami no Triforce (Japan).sfc")
patched_rom = seed.create_patched_game(
patchrom_array = jpn10rom,
heartspeed=None, can be off, quarter, half, double or normal.
heartcolor='red', can be red,
spritename='Link', can be any sprite listed at https://alttpr.com/sprites
music=False true or false, defaults true
)
seed.write_rom(patched_rom, "outputs/patched_rom.sfc")
after
python
seed = pyz3r.alttpr(
randomizer='item',
hash='zDvxWLLEMa'
)
jpn10rom = pyz3r.romfile.read("base_rom/Zelda no Densetsu - Kamigami no Triforce (Japan).sfc")
patched_rom = seed.create_patched_game(
patchrom_array = jpn10rom,
heartspeed=None, can be off, quarter, half, double or normal.
heartcolor='red', can be red,
spritename='Link', can be any sprite listed at https://alttpr.com/sprites
music=False true or false, defaults true
)
pyz3r.romfile.write(patched_rom, "outputs/patched_rom.sfc")
The old functions on the alttpr class will still exist and function for now, but will eventually be removed.
Also made some other behind the scenes changes that should make it more "pythonic".