In the grapher,add some room condition bits to clean up code.
This commit is contained in:
parent
3f3e114536
commit
3dcf8449e5
3 changed files with 57 additions and 53 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue