X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=server%2Fworld.py;h=9bd9f6d197f3e65bc09f0bcfebd27643189ceef1;hb=c8f535af53bd1478065ee5daf1ff4230fe423249;hp=7940f70d700f177be5c9bce75374e8f8de0fcab9;hpb=fbfdf2ed32f5fed64b3940c84c0b0b0aa814818b;p=plomrogue diff --git a/server/world.py b/server/world.py index 7940f70..9bd9f6d 100644 --- a/server/world.py +++ b/server/world.py @@ -309,8 +309,7 @@ def make_world(seed): def turn_over(): """Run game world and its inhabitants until new player input expected.""" - from server.config.actions import action_db - from server.ai import ai + from server.config.actions import action_db, ai_func id = 0 whilebreaker = False while world_db["Things"][0]["T_LIFEPOINTS"]: @@ -331,7 +330,7 @@ def turn_over(): if 0 == id: whilebreaker = True break - ai(Thing) + ai_func(Thing) try_healing(Thing) hunger(Thing) if Thing["T_LIFEPOINTS"]: