home · contact · privacy
Server: Add save hook.
[plomrogue] / server / io.py
index ce3ee1a947eca4b9109cf4e9df51c57f41248028..5e02ed4287d1c22e4724a982f2f72718ef3af839 100644 (file)
@@ -212,6 +212,7 @@ def save_world():
             string = string + "T_ID " + str(tid) + "\n"
             for carried in sorted(world_db["Things"][tid]["T_CARRIES"]):
                 string = string + "T_CARRIES " + str(carried) + "\n"
+    string = string + io_db["hook_save"]()
     string = string + "SEED_RANDOMNESS " + str(rand.seed) + "\n" + \
         "WORLD_ACTIVE " + str(world_db["WORLD_ACTIVE"])
     atomic_write(io_db["path_save"], string)