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:
@@ -176,15 +176,15 @@ def get_always_hint_items(world: "WitnessWorld") -> List[str]:
|
||||
wincon = world.options.victory_condition
|
||||
|
||||
if discards:
|
||||
if difficulty == 1:
|
||||
if difficulty == "sigma_expert":
|
||||
always.append("Arrows")
|
||||
else:
|
||||
always.append("Triangles")
|
||||
|
||||
if wincon == 0:
|
||||
if wincon == "elevator":
|
||||
always += ["Mountain Bottom Floor Final Room Entry (Door)", "Mountain Bottom Floor Doors"]
|
||||
|
||||
if wincon == 1:
|
||||
if wincon == "challenge":
|
||||
always += ["Challenge Entry (Panel)", "Caves Panels"]
|
||||
|
||||
return always
|
||||
|
||||
Reference in New Issue
Block a user