from server.config.world_data import world_db
from server.io import log
from server.utils import rand
from server.config.world_data import world_db
from server.io import log
from server.utils import rand
def turn_over():
"""Run game world and its inhabitants until new player input expected."""
from server.config.actions import action_db, ai_func
def turn_over():
"""Run game world and its inhabitants until new player input expected."""
from server.config.actions import action_db, ai_func
while world_db["Things"][0]["T_LIFEPOINTS"]:
proliferable_map = world_db["MAP"][:]
for id in [id for id in world_db["Things"]
while world_db["Things"][0]["T_LIFEPOINTS"]:
proliferable_map = world_db["MAP"][:]
for id in [id for id in world_db["Things"]
taid = [a for a in world_db["ThingActions"]
if a == Thing["T_COMMAND"]][0]
ThingAction = world_db["ThingActions"][taid]
taid = [a for a in world_db["ThingActions"]
if a == Thing["T_COMMAND"]][0]
ThingAction = world_db["ThingActions"][taid]