X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;f=plomrogue-server.py;h=092355bb43de61b72b8f8522a0d10c1a72099945;hb=9aa27a13f9cc3368e81ff348f6a8b992f1a98a99;hp=eb1267157f2a6598c347e10ab7b895721c7090cc;hpb=f64676dc1f4da35e687031c868ac551dafc0e190;p=plomrogue
diff --git a/plomrogue-server.py b/plomrogue-server.py
index eb12671..092355b 100755
--- a/plomrogue-server.py
+++ b/plomrogue-server.py
@@ -133,14 +133,17 @@ def save_world():
str(tt["TT_CONSUMABLE"]) + "\n" + \
"TT_LIFEPOINTS " + \
str(tt["TT_LIFEPOINTS"]) + "\n" + \
- "TT_CORPSE_ID " + \
- str(tt["TT_CORPSE_ID"]) + "\n" + \
"TT_PROLIFERATE " + \
str(tt["TT_PROLIFERATE"]) + "\n" + \
"TT_START_NUMBER " + \
str(tt["TT_START_NUMBER"]) + "\n" + \
"TT_NAME '" + tt["TT_NAME"] + "'\n" + \
"TT_SYMBOL '" + tt["TT_SYMBOL"] + "'\n"
+ for id in world_db["ThingTypes"]:
+ tt = world_db["ThingTypes"][id]
+ tt_string = tt_string + "TT_ID " + str(id) + "\n" + \
+ "TT_CORPSE_ID " + \
+ str(tt["TT_CORPSE_ID"]) + "\n"
atomic_write(io_db["path_save"],
"WORLD_ACTIVE " + str(world_db["WORLD_ACTIVE"]) + "\n" +
"MAP_LENGTH " + str(world_db["MAP_LENGTH"]) + "\n" +