X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=make_dungeon.py;h=260157847530b9eef0196fb7a20b6112be8dbb6e;hp=b3e08fde39ac7fc2f6aa63205c987f759647ee2e;hb=08f77c692a84d836e494c8cd469f5ac00524cf1c;hpb=88c734ceea3f25a2926ae00af4ca790deedcdcd2 diff --git a/make_dungeon.py b/make_dungeon.py index b3e08fd..2601578 100755 --- a/make_dungeon.py +++ b/make_dungeon.py @@ -6,6 +6,9 @@ # 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 @@ -152,8 +155,8 @@ def get_objects(obj): if labels: global statedefines statedefines += "/* States for %s */\n" % item[0] - for (j, label) in enumerate(labels): - statedefines += "#define %s\t%d\n" % (label, j) + for (n, label) in enumerate(labels): + statedefines += "#define %s\t%d\n" % (label, n) statedefines += "\n" sounds_str = "" if attr.get("sounds") == None: