X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/gitweb.css?a=blobdiff_plain;f=roguelike-server;h=fcdf0ff7da59af8545bb421d2ed015e7ffbb0779;hb=cb0222ecde89fb31670790144fd2cc3183353ba6;hp=0461c5cf25a0f8a51ce09a325e2007f1c5b52a2f;hpb=41d0e36cde41250d261ad5a57feacdf3b9162dd2;p=plomrogue diff --git a/roguelike-server b/roguelike-server index 0461c5c..fcdf0ff 100755 --- a/roguelike-server +++ b/roguelike-server @@ -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