home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2187329
)
Server/py: Fix actor_drop logging.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 4 Mar 2015 13:45:20 +0000
(14:45 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 4 Mar 2015 13:45:20 +0000
(14:45 +0100)
plomrogue-server.py
patch
|
blob
|
history
diff --git
a/plomrogue-server.py
b/plomrogue-server.py
index cb7f9b0cbb31b81d006330528971d99ec56a7151..e763a3dd292590c375f5f09be6dbcdd378bd5e56 100755
(executable)
--- 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")
strong_write(io_db["file_out"], "LOG You wait.\n")
-def actor_move(
Thing
):
+def actor_move(
t
):
pass
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]:
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]:
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
pass