projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In the grapher,add some room condition bits to clean up code.
[open-adventure.git]
/
make_graph.py
diff --git
a/make_graph.py
b/make_graph.py
index f29c3e183b5a1b1ef1057e01a1aa7c849ef870fc..92655e5e354d4060a9f5982dfd28be3014d27804 100755
(executable)
--- 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"
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"
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"
def surface(loc):
"Select out surface locations"