mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
The Witness: Change all option name comparisons to strings instead of numeric values (#2503)
* Refactor postgame code to be more readable * Change all references to options to strings * oops * Fix some outdated code related to yaml-disabled EPs * Small fixes to short/longbox stuff (thanks Medic) * comment * fix duplicate * Removed triplicate lmfao * Better comment * added another 'unfun' postgame consideration * comment * more option strings * oops * Remove an unnecessary comparison * another string missed * Another was missed * This would create a really bad merge error
This commit is contained in:
@@ -134,13 +134,13 @@ class WitnessRegions:
|
||||
world.multiworld.regions += final_regions_list
|
||||
|
||||
def __init__(self, locat: WitnessPlayerLocations, world: "WitnessWorld"):
|
||||
difficulty = world.options.puzzle_randomization.value
|
||||
difficulty = world.options.puzzle_randomization
|
||||
|
||||
if difficulty == 0:
|
||||
if difficulty == "sigma_normal":
|
||||
self.reference_logic = StaticWitnessLogic.sigma_normal
|
||||
elif difficulty == 1:
|
||||
elif difficulty == "sigma_expert":
|
||||
self.reference_logic = StaticWitnessLogic.sigma_expert
|
||||
elif difficulty == 2:
|
||||
elif difficulty == "none":
|
||||
self.reference_logic = StaticWitnessLogic.vanilla
|
||||
|
||||
self.locat = locat
|
||||
|
Reference in New Issue
Block a user