From 58b5c6f15d59e2b76b3093508c10f8cfb6b7c1bc Mon Sep 17 00:00:00 2001 From: AmazingAmpharos Date: Sat, 3 Mar 2018 12:42:46 -0600 Subject: [PATCH] Heart Color support --- Plando.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Plando.py b/Plando.py index c49d38d0..941a8606 100755 --- a/Plando.py +++ b/Plando.py @@ -84,7 +84,7 @@ def main(args): sprite = None 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: if texttype == 'text': @@ -219,6 +219,8 @@ def start(): 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'], 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('--plando', help='Filled out template to use for setting up the rom.') args = parser.parse_args()