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, plugin: Refactor thingproliferation (plugin integration).
[plomrogue]
/
server
/
world.py
diff --git
a/server/world.py
b/server/world.py
index 0e07785fe53d83d4431524b6b858437967a9cac2..b9f9114630ef51233883d5c8fa5d67e729b1e0ef 100644
(file)
--- a/
server/world.py
+++ b/
server/world.py
@@
-6,7
+6,6
@@
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
-from server.utils import id_setter
def try_healing(t):
def try_healing(t):
@@
-53,8
+52,9
@@
def set_world_inactive():
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
- from server.config.misc import
thingproliferation_func,
calc_effort_func
+ from server.config.misc import calc_effort_func
from server.update_map_memory import update_map_memory
from server.update_map_memory import update_map_memory
+ from server.thingproliferation import thingproliferation
id = 0
while world_db["Things"][0]["T_LIFEPOINTS"]:
proliferable_map = world_db["MAP"][:]
id = 0
while world_db["Things"][0]["T_LIFEPOINTS"]:
proliferable_map = world_db["MAP"][:]
@@
-87,5
+87,5
@@
def turn_over():
action(Thing)
Thing["T_COMMAND"] = 0
Thing["T_PROGRESS"] = 0
action(Thing)
Thing["T_COMMAND"] = 0
Thing["T_PROGRESS"] = 0
- thingproliferation
_func
(Thing, proliferable_map)
+ thingproliferation(Thing, proliferable_map)
world_db["TURN"] += 1
world_db["TURN"] += 1