Adds logging for if a grenade is primed by damage received (#31761)

This commit is contained in:
PollardTheDragon
2026-04-03 20:24:31 +00:00
committed by GitHub
parent c850661bfb
commit 01726c44b5
@@ -39,6 +39,12 @@
/obj/item/grenade/deconstruct(disassembled = TRUE)
if(!disassembled)
var/turf/bombturf = get_turf(src)
var/area/A = get_area(bombturf)
message_admins("Damage has caused [src] to be primed for detonation at <a href='byond://?_src_=holder;adminplayerobservecoodjump=1;X=[bombturf.x];Y=[bombturf.y];Z=[bombturf.z]'>[A.name] (JMP)</a>")
log_game("Damage has caused [src] has be primed for detonation at [A] ([bombturf.x],[bombturf.y],[bombturf.z])")
investigate_log("Damage has caused [src] has be primed for detonation at [A] ([bombturf.x],[bombturf.y],[bombturf.z])", INVESTIGATE_BOMB)
add_attack_logs(null, src, "has primed for detonation by damage.", ATKLOG_FEW)
prime()
if(!QDELETED(src))
qdel(src)