home · contact · privacy
TCE: Refactor too-full-to-eat test.
[plomrogue] / server / world.py
index 21d5f67c14e9bb950992ded6e6e2b3cd0e6f3ddf..c6c835fb3cf9735d94df62452a21242b40cda6af 100644 (file)
@@ -67,7 +67,8 @@ def turn_over():
     from server.config.misc import calc_effort
     from server.update_map_memory import update_map_memory
     from server.thingproliferation import thingproliferation
-    id = 0
+    from server.io import try_worldstate_update
+    from server.config.io import io_db
     while world_db["Things"][0]["T_LIFEPOINTS"]:
         proliferable_map = world_db["MAP"][:]
         for tid in [tid for tid in world_db["Things"]
@@ -101,3 +102,5 @@ def turn_over():
                         Thing["T_PROGRESS"] = 0
             thingproliferation(Thing, proliferable_map)
         world_db["TURN"] += 1
+        io_db["worldstate_updateable"] = True
+        try_worldstate_update()