Skip to content

Commit

Permalink
customizer: added map screen colorblind doors (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
flohgh committed Jul 23, 2024
1 parent 06b2cfb commit ab3f1e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions customizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit ab3f1e2

Please sign in to comment.