mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +00:00
Adds logging for throwing living mobs and throwing items that hit living mobs.
This commit is contained in:
@@ -51,6 +51,13 @@
|
||||
item.layer = initial(item.layer)
|
||||
src.visible_message("\red [src] has thrown [item].")
|
||||
|
||||
if(istype(item,/mob/living))
|
||||
var/mob/living/M = item
|
||||
M.attack_log += text("\[[time_stamp()]\] <font color='orange'>Has been thrown by [src.name] ([src.ckey])</font>")
|
||||
src.attack_log += text("\[[time_stamp()]\] <font color='red'>Threw [M.name] ([M.ckey])</font>")
|
||||
log_attack("<font color='red'>[src.name] ([src.ckey]) threw [M.name] ([M.ckey])</font>")
|
||||
log_admin("ATTACK: [src.name] ([src.ckey]) threw [M.name] ([M.ckey])")
|
||||
|
||||
if(!src.lastarea)
|
||||
src.lastarea = get_area(src.loc)
|
||||
if((istype(src.loc, /turf/space)) || (src.lastarea.has_gravity == 0))
|
||||
@@ -106,6 +113,10 @@
|
||||
if(src.vars.Find("throwforce"))
|
||||
M.take_organ_damage(src:throwforce)
|
||||
|
||||
log_attack("<font color='red'>[hit_atom] ([M.ckey]) was hit by [src] thrown by ([src.fingerprintslast])</font>")
|
||||
log_admin("ATTACK: [hit_atom] ([M.ckey]) was hit by [src] thrown by ([src.fingerprintslast])")
|
||||
message_admins("ATTACK: [hit_atom] ([M.ckey]) was hit by [src] thrown by ([src.fingerprintslast])")
|
||||
|
||||
else if(isobj(hit_atom))
|
||||
var/obj/O = hit_atom
|
||||
if(!O.anchored)
|
||||
|
||||
Reference in New Issue
Block a user