home · contact · privacy
Fix another actor_move string building bug.
[plomrogue] / roguelike-server
index 0461c5cf25a0f8a51ce09a325e2007f1c5b52a2f..fcdf0ff7da59af8545bb421d2ed015e7ffbb0779 100755 (executable)
@@ -626,12 +626,13 @@ 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")
             elif 0 == hit_id:
                 hitter_name = world_db["ThingTypes"][t["T_TYPE"]]["TT_NAME"]
-                strong_write(io_db["file_out"], "LOG " + hitter +
+                strong_write(io_db["file_out"], "LOG " + hitter_name +
                                                 " wounds you.\n")
             decrement_lifepoints(world_db["Things"][hit_id])
             return