home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix KeyError bug in actor_move.
[plomrogue]
/
roguelike-server
diff --git
a/roguelike-server
b/roguelike-server
index 0461c5cf25a0f8a51ce09a325e2007f1c5b52a2f..0a44ee61a17af99ab597642ecb467a6ffbbe875b 100755
(executable)
--- a/
roguelike-server
+++ b/
roguelike-server
@@
-626,6
+626,7
@@
def actor_move(t):
if len(hitted):
hit_id = hitted[0]
if t == world_db["Things"][0]:
+ hitted_type = world_db["Things"][hit_id]["T_TYPE"]
hitted_name = world_db["ThingTypes"][hitted_type]["TT_NAME"]
strong_write(io_db["file_out"], "LOG You wound " + hitted +
".\n")