From ab3f1e21a12fff85a41e1b7317cf55ddfa0bdad1 Mon Sep 17 00:00:00 2001 From: flo Date: Wed, 24 Jul 2024 00:52:49 +0200 Subject: [PATCH] customizer: added map screen colorblind doors (#128) --- customizer.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/customizer.py b/customizer.py index b046f7dd..a27ad71c 100755 --- a/customizer.py +++ b/customizer.py @@ -135,8 +135,11 @@ i += 1 else: raise ValueError("Invalid button name : " + str(b)) - + colorBlind = 'color_blind.ips' in args.patches + if colorBlind: + args.patches.append('colorblind_palettes.ips') try: + if args.rom is not None: # patch local rom inFileName = args.rom @@ -218,7 +221,7 @@ } for param in paletteSettings: paletteSettings[param] = getattr(args, param) - PaletteRando(romPatcher, paletteSettings, args.sprite, 'color_blind.ips' in args.patches).randomize() + PaletteRando(romPatcher, paletteSettings, args.sprite, colorBlind).randomize() if musicPatcher is not None: musicPatcher.replace(musicMapping, updateReferences=musicParams.get('room_states', True),