mirror of
				https://github.com/MarioSpore/Grinch-AP.git
				synced 2025-10-21 20:21:32 -06:00 
			
		
		
		
	LADX: combine warp options (#4325)
* combine warp options * fix * fix typo * mark old options as removed
This commit is contained in:
		| @@ -58,7 +58,7 @@ from . import hints | |||||||
|  |  | ||||||
| from .patches import bank34 | from .patches import bank34 | ||||||
| from .utils import formatText | from .utils import formatText | ||||||
| from ..Options import TrendyGame, Palette | from ..Options import TrendyGame, Palette, Warps | ||||||
| from .roomEditor import RoomEditor, Object | from .roomEditor import RoomEditor, Object | ||||||
| from .patches.aesthetics import rgb_to_bin, bin_to_rgb | from .patches.aesthetics import rgb_to_bin, bin_to_rgb | ||||||
|  |  | ||||||
| @@ -416,8 +416,8 @@ def generateRom(args, world: "LinksAwakeningWorld"): | |||||||
|             for channel in range(3): |             for channel in range(3): | ||||||
|                 color[channel] = color[channel] * 31 // 0xbc |                 color[channel] = color[channel] * 31 // 0xbc | ||||||
|  |  | ||||||
|     if world.options.warp_improvements: |     if world.options.warps != Warps.option_vanilla: | ||||||
|         patches.core.addWarpImprovements(rom, world.options.additional_warp_points) |         patches.core.addWarpImprovements(rom, world.options.warps == Warps.option_improved_additional) | ||||||
|  |  | ||||||
|     palette = world.options.palette |     palette = world.options.palette | ||||||
|     if palette != Palette.option_normal: |     if palette != Palette.option_normal: | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ from dataclasses import dataclass | |||||||
| import os.path | import os.path | ||||||
| import typing | import typing | ||||||
| import logging | import logging | ||||||
| from Options import Choice, Toggle, DefaultOnToggle, Range, FreeText, PerGameCommonOptions, OptionGroup | from Options import Choice, Toggle, DefaultOnToggle, Range, FreeText, PerGameCommonOptions, OptionGroup, Removed | ||||||
| from collections import defaultdict | from collections import defaultdict | ||||||
| import Utils | import Utils | ||||||
|  |  | ||||||
| @@ -486,21 +486,18 @@ class Music(Choice, LADXROption): | |||||||
|         return self.ladxr_name, s |         return self.ladxr_name, s | ||||||
|  |  | ||||||
|  |  | ||||||
| class WarpImprovements(DefaultOffToggle): | class Warps(Choice): | ||||||
|     """ |     """ | ||||||
|     [On] Adds remake style warp screen to the game. Choose your warp destination on the map after jumping in a portal and press B to select. |     [Improved] Adds remake style warp screen to the game. Choose your warp destination on the map after jumping in a portal and press B to select. | ||||||
|     [Off] No change |     [Improved Additional] Improved warps, and adds a warp point at Crazy Tracy's house (the Mambo teleport spot) and Eagle's Tower. | ||||||
|     """ |     """ | ||||||
|     display_name = "Warp Improvements" |     display_name = "Warps" | ||||||
|  |     option_vanilla = 0 | ||||||
|  |     option_improved = 1 | ||||||
|  |     option_improved_additional = 2 | ||||||
|  |     default = option_vanilla | ||||||
|  |  | ||||||
|  |  | ||||||
| class AdditionalWarpPoints(DefaultOffToggle): |  | ||||||
|     """ |  | ||||||
|     [On] (requires warp improvements) Adds a warp point at Crazy Tracy's house (the Mambo teleport spot) and Eagle's Tower |  | ||||||
|     [Off] No change |  | ||||||
|     """ |  | ||||||
|     display_name = "Additional Warp Points" |  | ||||||
|  |  | ||||||
| ladx_option_groups = [ | ladx_option_groups = [ | ||||||
|     OptionGroup("Goal Options", [ |     OptionGroup("Goal Options", [ | ||||||
|         Goal, |         Goal, | ||||||
| @@ -515,8 +512,7 @@ ladx_option_groups = [ | |||||||
|         ShuffleStoneBeaks |         ShuffleStoneBeaks | ||||||
|     ]), |     ]), | ||||||
|     OptionGroup("Warp Points", [ |     OptionGroup("Warp Points", [ | ||||||
|         WarpImprovements, |         Warps, | ||||||
|         AdditionalWarpPoints, |  | ||||||
|     ]), |     ]), | ||||||
|     OptionGroup("Miscellaneous", [ |     OptionGroup("Miscellaneous", [ | ||||||
|         TradeQuest, |         TradeQuest, | ||||||
| @@ -562,8 +558,7 @@ class LinksAwakeningOptions(PerGameCommonOptions): | |||||||
|     # 'bowwow': Bowwow, |     # 'bowwow': Bowwow, | ||||||
|     # 'overworld': Overworld, |     # 'overworld': Overworld, | ||||||
|     link_palette: LinkPalette |     link_palette: LinkPalette | ||||||
|     warp_improvements: WarpImprovements |     warps: Warps | ||||||
|     additional_warp_points: AdditionalWarpPoints |  | ||||||
|     trendy_game: TrendyGame |     trendy_game: TrendyGame | ||||||
|     gfxmod: GfxMod |     gfxmod: GfxMod | ||||||
|     palette: Palette |     palette: Palette | ||||||
| @@ -579,3 +574,6 @@ class LinksAwakeningOptions(PerGameCommonOptions): | |||||||
|     nag_messages: NagMessages |     nag_messages: NagMessages | ||||||
|     ap_title_screen: APTitleScreen |     ap_title_screen: APTitleScreen | ||||||
|     boots_controls: BootsControls |     boots_controls: BootsControls | ||||||
|  |  | ||||||
|  |     warp_improvements: Removed | ||||||
|  |     additional_warp_points: Removed | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 threeandthreee
					threeandthreee