From 24473bdd192ab79fda429bb7e9d423cff874b140 Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Wed, 19 Dec 2012 01:57:47 -0800 Subject: [PATCH] A small fix to the throwing string when a mob is struck with a baton. --- code/game/objects/items/weapons/stunbaton.dm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/weapons/stunbaton.dm b/code/game/objects/items/weapons/stunbaton.dm index b71b60532f4..5e314002a24 100644 --- a/code/game/objects/items/weapons/stunbaton.dm +++ b/code/game/objects/items/weapons/stunbaton.dm @@ -10,6 +10,8 @@ w_class = 3 var/charges = 10 var/status = 0 + var/mob/foundmob = "" //Used in throwing proc. + origin_tech = "combat=2" @@ -99,7 +101,12 @@ H.apply_effect(10, STUTTER, 0) charges-- - H.visible_message("[src], thrown by ([src.fingerprintslast]) hits [H] with stunning end!") + for(var/mob/M in player_list) if(M.key == src.fingerprintslast) + foundmob = M + break + + H.visible_message("[src], thrown by [foundmob.name], strikes [H] and stuns them!") + H.attack_log += "\[[time_stamp()]\] Stunned by thrown [src.name] (([src.fingerprintslast]))" log_attack("Flying [src.name], thrown by ([src.fingerprintslast]) stunned [H.name] ([H.ckey])" )