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:
@@ -509,9 +509,9 @@ class WitnessPlayerLocations:
|
||||
if world.options.shuffle_vault_boxes:
|
||||
self.PANEL_TYPES_TO_SHUFFLE.add("Vault")
|
||||
|
||||
if world.options.shuffle_EPs == 1:
|
||||
if world.options.shuffle_EPs == "individual":
|
||||
self.PANEL_TYPES_TO_SHUFFLE.add("EP")
|
||||
elif world.options.shuffle_EPs == 2:
|
||||
elif world.options.shuffle_EPs == "obelisk_sides":
|
||||
self.PANEL_TYPES_TO_SHUFFLE.add("Obelisk Side")
|
||||
|
||||
for obelisk_loc in StaticWitnessLocations.OBELISK_SIDES:
|
||||
|
||||
Reference in New Issue
Block a user