Skip to content

Commit a820da3

Browse files
committed
th
1 parent b733904 commit a820da3

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

archipelago/Options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Goal(Choice):
3737
- pearls: Find a certain number of Pearls to win. See goal_quantity option for more info.
3838
- bosses: Defeat a certain number of bosses to win. See goal_quantity option for more info.
3939
- bonuses: Complete a certain number of Bonus Barrels to win. Automatically disables auto_complete_bonus_barrels if set. See goal_quantity option for more info.
40-
- treasure_hurry: Run down the timer by collecting treasure! You win when the timer reaches 0.
40+
- treasure_hurry: Run down the timer by collecting treasure! You win when the timer reaches 0. If you beat Helm, the wincon automatically changes to beating K. Rool.
4141
- krools_challenge: K. Rool's ship does not spawn until you collect All keys, Defeat All bosses, Play all Bonus Barrels, and collect All Blueprints.
4242
- kill_the_rabbit: Kill the rabbit in Chunky's igloo in Caves. Turn it to Ash. Simple as that.
4343
"""
105 KB
Loading

randomizer/Patching/ASMPatcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1706,7 +1706,7 @@ def patchAssembly(ROM_COPY, spoiler):
17061706
# Fix Null Lag Boost
17071707
writeHook(ROM_COPY, 0x806CCA90, Overlay.Static, "fixNullLagBoost", offset_dict)
17081708

1709-
if settings.win_condition_spawns_ship:
1709+
if settings.win_condition_spawns_ship and not (settings.helm_hurry and settings.archipelago):
17101710
writeValue(ROM_COPY, 0x80029706, Overlay.Menu, getHiSym("k_rool_text"), offset_dict)
17111711
writeValue(ROM_COPY, 0x8002970A, Overlay.Menu, getLoSym("k_rool_text"), offset_dict)
17121712
writeFloatUpper(ROM_COPY, 0x800296D2, Overlay.Menu, 280, offset_dict)

randomizer/Patching/CosmeticColors.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -705,9 +705,8 @@ def writeWinConImage(settings: Settings, image: Image, ROM_COPY: LocalROM):
705705
def showWinCondition(settings: Settings, ROM_COPY: LocalROM):
706706
"""Alter the image that's shown on the main menu to display the win condition."""
707707
win_con = settings.win_condition_item
708-
if win_con == WinConditionComplex.beat_krool:
709-
# Default, don't alter image
710-
return
708+
helmhurry = settings.helm_hurry and settings.archipelago
709+
711710
if win_con == WinConditionComplex.krools_challenge:
712711
images = [
713712
(0x903, 0, 1),
@@ -728,6 +727,11 @@ def showWinCondition(settings: Settings, ROM_COPY: LocalROM):
728727
output_image.paste(local_img, (pos_x, pos_y), local_img)
729728
output_image = output_image.resize((32, 32)).transpose(Image.FLIP_TOP_BOTTOM)
730729
writeWinConImage(settings, output_image, ROM_COPY)
730+
if helmhurry:
731+
output_image = Image.open(BytesIO(js.getFile("base-hack/assets/displays/treasurechest.png")))
732+
output_image = output_image.resize((32, 32))
733+
writeWinConImage(settings, output_image, ROM_COPY)
734+
return
731735
if win_con == WinConditionComplex.get_key8:
732736
output_image = Image.open(BytesIO(js.getFile("base-hack/assets/displays/key8.png")))
733737
output_image = output_image.resize((32, 32))

0 commit comments

Comments
 (0)