X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=make_graph.py;h=92655e5e354d4060a9f5982dfd28be3014d27804;hb=3dcf8449e56fc6a3e792c8694bd390bd2ddd85d3;hp=f29c3e183b5a1b1ef1057e01a1aa7c849ef870fc;hpb=3f3e1145363712fe21c767bae71607fc34c04ec5;p=open-adventure.git diff --git a/make_graph.py b/make_graph.py index f29c3e1..92655e5 100755 --- a/make_graph.py +++ b/make_graph.py @@ -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"