# The nontrivial part of this is the compilation of the YAML for
# movement rules to the travel array that's actually used by
# playermove().
+#
+# Copyright (c) 2017 by Eric S. Raymond
+# SPDX-License-Identifier: BSD-2-clause
import sys, yaml
obit_str = obit_str[:-1] # trim trailing newline
return obit_str
-def get_hints(hnt, arb):
+def get_hints(hnt):
template = """ {{
.number = {},
.penalty = {},
}},
"""
hnt_str = ""
- md = dict(arb)
for member in hnt:
item = member["hint"]
number = item["number"]
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"]),