In the grapher,add some room condition bits to clean up code.

This commit is contained in:
Eric S. Raymond 2022-04-20 08:27:30 -04:00
parent 3f3e114536
commit 3dcf8449e5
3 changed files with 57 additions and 53 deletions

View file

@ -18,11 +18,11 @@ import sys, getopt, yaml
def allalike(loc):
"Select out loci related to the Maze All Alike"
return ("ALIKE" in loc) or (loc == "LOC_PITBRINK") or ("MAZEEND" in loc) or ("STALACTITE" in loc)
return location_lookup[loc]["conditions"].get("ALLALIKE")
def alldifferent(loc):
"Select out loci related to the Maze All Alike"
return ("DIFFERENT" in loc) or (loc == "LOC_DEADEND13")
return location_lookup[loc]["conditions"].get("ALLDIFFERENT")
def surface(loc):
"Select out surface locations"