Heart Color support
This commit is contained in:
parent
c5b62c9b93
commit
58b5c6f15d
|
@ -84,7 +84,7 @@ def main(args):
|
||||||
sprite = None
|
sprite = None
|
||||||
|
|
||||||
rom = LocalRom(args.rom)
|
rom = LocalRom(args.rom)
|
||||||
patch_rom(world, rom, logic_hash, args.heartbeep, sprite)
|
patch_rom(world, rom, logic_hash, args.heartbeep, args.heartcolor, sprite)
|
||||||
|
|
||||||
for textname, texttype, text in text_patches:
|
for textname, texttype, text in text_patches:
|
||||||
if texttype == 'text':
|
if texttype == 'text':
|
||||||
|
@ -219,6 +219,8 @@ def start():
|
||||||
parser.add_argument('--disablemusic', help='Disables game music.', action='store_true')
|
parser.add_argument('--disablemusic', help='Disables game music.', action='store_true')
|
||||||
parser.add_argument('--heartbeep', default='normal', const='normal', nargs='?', choices=['normal', 'half', 'quarter', 'off'],
|
parser.add_argument('--heartbeep', default='normal', const='normal', nargs='?', choices=['normal', 'half', 'quarter', 'off'],
|
||||||
help='Select the rate at which the heart beep sound is played at low health.')
|
help='Select the rate at which the heart beep sound is played at low health.')
|
||||||
|
parser.add_argument('--heartcolor', default='red', const='red', nargs='?', choices=['red', 'blue', 'green', 'yellow'],
|
||||||
|
help='Select the color of Link\'s heart meter. (default: %(default)s)')
|
||||||
parser.add_argument('--sprite', help='Path to a sprite sheet to use for Link. Needs to be in binary format and have a length of 0x7000 (28672) bytes.')
|
parser.add_argument('--sprite', help='Path to a sprite sheet to use for Link. Needs to be in binary format and have a length of 0x7000 (28672) bytes.')
|
||||||
parser.add_argument('--plando', help='Filled out template to use for setting up the rom.')
|
parser.add_argument('--plando', help='Filled out template to use for setting up the rom.')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
Loading…
Reference in New Issue