home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Server: Make ai func selectable.
[plomrogue]
/
server
/
world.py
diff --git
a/server/world.py
b/server/world.py
index 7940f70d700f177be5c9bce75374e8f8de0fcab9..9bd9f6d197f3e65bc09f0bcfebd27643189ceef1 100644
(file)
--- 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."""
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"]:
id = 0
whilebreaker = False
while world_db["Things"][0]["T_LIFEPOINTS"]:
@@
-331,7
+330,7
@@
def turn_over():
if 0 == id:
whilebreaker = True
break
if 0 == id:
whilebreaker = True
break
- ai(Thing)
+ ai
_func
(Thing)
try_healing(Thing)
hunger(Thing)
if Thing["T_LIFEPOINTS"]:
try_healing(Thing)
hunger(Thing)
if Thing["T_LIFEPOINTS"]: