X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=make_dungeon.py;h=ddbfc2e6fcf77a2f6b2f78706339867957c62b3d;hp=9b729cc2505193b54a81e576ed47bb2c2cd3c253;hb=99595f6a2a68a0c309b9955c56c2a8d297ecac76;hpb=6af7db8cd9bbac9b238897a03fe1e6a04b26b944 diff --git a/make_dungeon.py b/make_dungeon.py index 9b729cc..ddbfc2e 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. @@ -626,7 +626,7 @@ def buildtravel(locs, objs): try: return locnames.index(action[1]) except ValueError: - sys.stderr.write("dungeon: unknown location %s in goto clause of %s\n" % (cond[1], name)) + sys.stderr.write("dungeon: unknown location %s in goto clause of %s\n" % (action[1], name)) elif action[0] == "special": return 300 + action[1] elif action[0] == "speak":