projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5cdaa30
)
Remove an unnecessary argument.
author
Eric S. Raymond
<esr@thyrsus.com>
Thu, 8 Mar 2018 13:35:46 +0000
(08:35 -0500)
committer
Eric S. Raymond
<esr@thyrsus.com>
Thu, 8 Mar 2018 13:36:37 +0000
(08:36 -0500)
make_dungeon.py
patch
|
blob
|
history
diff --git
a/make_dungeon.py
b/make_dungeon.py
index 454a27a3c4ae81c69a226c11f3aaf7d37f155225..b3e08fde39ac7fc2f6aa63205c987f759647ee2e 100755
(executable)
--- a/
make_dungeon.py
+++ b/
make_dungeon.py
@@
-203,7
+203,7
@@
def get_obituaries(obit):
obit_str = obit_str[:-1] # trim trailing newline
return obit_str
obit_str = obit_str[:-1] # trim trailing newline
return obit_str
-def get_hints(hnt
, arb
):
+def get_hints(hnt):
template = """ {{
.number = {},
.penalty = {},
template = """ {{
.number = {},
.penalty = {},
@@
-213,7
+213,6
@@
def get_hints(hnt, arb):
}},
"""
hnt_str = ""
}},
"""
hnt_str = ""
- md = dict(arb)
for member in hnt:
item = member["hint"]
number = item["number"]
for member in hnt:
item = member["hint"]
number = item["number"]
@@
-550,7
+549,7
@@
if __name__ == "__main__":
locations = get_locations(db["locations"]),
objects = get_objects(db["objects"]),
obituaries = get_obituaries(db["obituaries"]),
locations = get_locations(db["locations"]),
objects = get_objects(db["objects"]),
obituaries = get_obituaries(db["obituaries"]),
- hints = get_hints(db["hints"]
, db["arbitrary_messages"]
),
+ hints = get_hints(db["hints"]),
conditions = get_condbits(db["locations"]),
motions = get_motions(db["motions"]),
actions = get_actions(db["actions"]),
conditions = get_condbits(db["locations"]),
motions = get_motions(db["motions"]),
actions = get_actions(db["actions"]),