From b704070de54666c483943792339f85cda986d716 Mon Sep 17 00:00:00 2001 From: zig-for Date: Wed, 26 Apr 2023 01:49:38 -0700 Subject: [PATCH] LADX: Fix palettes (#1767) --- worlds/ladx/LADXR/generator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/worlds/ladx/LADXR/generator.py b/worlds/ladx/LADXR/generator.py index 90670c02584f..c63d2b72c5d3 100644 --- a/worlds/ladx/LADXR/generator.py +++ b/worlds/ladx/LADXR/generator.py @@ -54,8 +54,10 @@ from .patches import tradeSequence as _ from . import hints -from .locations.keyLocation import KeyLocation from .patches import bank34 +from .patches.aesthetics import rgb_to_bin, bin_to_rgb + +from .locations.keyLocation import KeyLocation from ..Options import TrendyGame, Palette, MusicChangeCondition @@ -368,7 +370,6 @@ def clamp(x, min, max): if x > max: return max return x - from patches.aesthetics import rgb_to_bin, bin_to_rgb for address in range(start, end, 2): packed = (rom.banks[bank][address + 1] << 8) | rom.banks[bank][address]