X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=make_dungeon.py;h=b37856368947d219bcb5a79ef66deeaf38fdbdcf;hp=70fab09a75a15ea0efb886abb569af75c956676a;hb=2aa35a6d84725df2f39736233c3be916c3efbe33;hpb=3a7ce1b73a90e8b379f07487f764172210ebbeb8 diff --git a/make_dungeon.py b/make_dungeon.py index 70fab09..b378563 100755 --- a/make_dungeon.py +++ b/make_dungeon.py @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python # This is the open-adventure dungeon generator. It consumes a YAML description of # the dungeon and outputs a dungeon.h and dungeon.c pair of C code files. @@ -384,8 +384,8 @@ def get_objects(obj): if labels: global statedefines statedefines += "/* States for %s */\n" % item[0] - for (i, label) in enumerate(labels): - statedefines += "#define %s\t%d\n" % (label, i) + for (j, label) in enumerate(labels): + statedefines += "#define %s\t%d\n" % (label, j) statedefines += "\n" sounds_str = "" if attr.get("sounds") == None: