def turn_over():
"""Run game world and its inhabitants until new player input expected."""
+ # TODO: Add build_fov_map, actor_move trigger not enough on changing maps.
from server.ai import ai
from server.config.actions import action_db
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"]
Thing["T_PROGRESS"] = 0
thingproliferation(Thing, proliferable_map)
world_db["TURN"] += 1
+ io_db["worldstate_updateable"] = True
+ try_worldstate_update()