home · contact · privacy
Server/py: Fix actor_drop logging.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 4 Mar 2015 13:45:20 +0000 (14:45 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 4 Mar 2015 13:45:20 +0000 (14:45 +0100)
plomrogue-server.py

index cb7f9b0cbb31b81d006330528971d99ec56a7151..e763a3dd292590c375f5f09be6dbcdd378bd5e56 100755 (executable)
@@ -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