LADX: Fix palettes (#1767)

This commit is contained in:
zig-for 2023-04-26 01:49:38 -07:00 committed by GitHub
parent 6c459066a7
commit b704070de5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -54,8 +54,10 @@ from .patches import multiworld as _
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 generateRom(args, settings, ap_settings, auth, seed_name, logic, rnd=None, m
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]