From: Christian Heller Date: Wed, 4 Mar 2015 13:45:20 +0000 (+0100) Subject: Server/py: Fix actor_drop logging. X-Git-Tag: tce~416 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/te"st.html?a=commitdiff_plain;h=6d11d947ea8860da01922be28a0657b8e33f7a93;p=plomrogue Server/py: Fix actor_drop logging. --- diff --git a/plomrogue-server.py b/plomrogue-server.py index cb7f9b0..e763a3d 100755 --- a/plomrogue-server.py +++ b/plomrogue-server.py @@ -455,7 +455,7 @@ def actor_wait(t): strong_write(io_db["file_out"], "LOG You wait.\n") -def actor_move(Thing): +def actor_move(t): pass @@ -484,12 +484,13 @@ def actor_drop(t): t["T_CARRIES"].remove(id) world_db["Things"][id]["carried"] = False if t == world_db["Things"][0]: - print("You drop an object.") + strong_write(io_db["file_out"], "LOG You drop an object.\n") elif t == world_db["Things"][0]: - print("You try to drop an object, but you own none.") + err = "You try to drop an object, but you own none." + strong_write(io_db["file_out"], "LOG " + err + "\n") -def actor_use(Thing): +def actor_use(t): pass