X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=newdungeon.py;h=7f70741d331f62aebe962f47a8e09434db3dbf6b;hp=89d8db6f794aca63f9e722c1fbc87f04dfdef9c4;hb=985137d9c7ed18ee0777622874efe944218cae6a;hpb=07207420a20cc92ccb03dcb9c032114fdc22c4f2 diff --git a/newdungeon.py b/newdungeon.py index 89d8db6..7f70741 100755 --- a/newdungeon.py +++ b/newdungeon.py @@ -69,10 +69,11 @@ extern turn_threshold_t turn_thresholds[]; extern obituary_t obituaries[]; extern hint_t hints[]; extern long conditions[]; -extern const size_t CLSSES; -extern const int maximum_deaths; -extern const int turn_threshold_count; -#define HINT_COUNT {} + +#define NHINTS {} +#define NCLASSES {} +#define NDEATHS {} +#define NTHRESHOLDS {} enum arbitrary_messages_refs {{ {} @@ -129,10 +130,6 @@ long conditions[] = {{ {} }}; -const size_t CLSSES = {}; -const int maximum_deaths = {}; -const int turn_threshold_count = {}; - /* end */ """ @@ -338,13 +335,13 @@ if __name__ == "__main__": get_obituaries(db["obituaries"]), get_hints(db["hints"], db["arbitrary_messages"]), get_condbits(db["locations"]), - len(db["classes"]), - len(db["obituaries"]), - len(db["turn_thresholds"]), ) h = h_template.format( len(db["hints"]), + len(db["classes"]), + len(db["obituaries"]), + len(db["turn_thresholds"]), get_refs(db["arbitrary_messages"]), get_refs(db["locations"]), get_refs(db["object_descriptions"]),