Remove an unnecessary argument.
[open-adventure.git] / make_dungeon.py
index 6ac5ba15dc9c90dcf4e54dfe82c96237ffda951b..b3e08fde39ac7fc2f6aa63205c987f759647ee2e 100755 (executable)
@@ -203,7 +203,7 @@ def get_obituaries(obit):
     obit_str = obit_str[:-1] # trim trailing newline
     return obit_str
 
-def get_hints(hnt, arb):
+def get_hints(hnt):
     template = """    {{
         .number = {},
         .penalty = {},
@@ -213,7 +213,6 @@ def get_hints(hnt, arb):
     }},
 """
     hnt_str = ""
-    md = dict(arb)
     for member in hnt:
         item = member["hint"]
         number = item["number"]
@@ -317,7 +316,7 @@ def buildtravel(locs, objs):
     # THIS CODE IS WAAAY MORE COMPLEX THAN IT NEEDS TO BE.  It's the
     # result of a massive refactoring exercise that concentrated all
     # the old nastiness in one spot. It hasn't been finally simplified
-    # because there's no need to do it until one of the asserions
+    # because there's no need to do it until one of the assertions
     # fails. Hint: if you try cleaning this up, the acceptance test is
     # simple - the output dungeon.c must not change.
     #
@@ -550,7 +549,7 @@ if __name__ == "__main__":
         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"]),