Adds more reasons to explosion logging (#28812)

* explos

* yeah good enough

* shorten that

* use ckey

* forgot this cause

* unfuck it
This commit is contained in:
Contrabang
2025-03-28 18:49:57 +00:00
committed by GitHub
parent c63dc53202
commit fde22d1c43
77 changed files with 120 additions and 117 deletions
+1 -1
View File
@@ -193,7 +193,7 @@
deltimer(explosion_callback)
stage = GIBTONITE_DETONATE
explosion(source, 1, 3, 5, adminlog = notify_admins)
explosion(source, 1, 3, 5, adminlog = notify_admins, cause = "Gibtonite")
if(!istype(source))
return
@@ -35,5 +35,5 @@
/datum/spell/alien_spell/combust_facehuggers/proc/blow_it_up(obj/target, mob/user)
add_attack_logs(user, target, "Caused it to explode")
explosion(get_turf(target), 0, 2, 3, 3, cause = user)
explosion(get_turf(target), 0, 2, 3, 3, cause = "[user.ckey]: [name]")
to_chat(user, "<span class='noticealien'>[target] has detonated!</span>")
+1 -1
View File
@@ -497,7 +497,7 @@
var/turf/corpse_turf = get_turf(target)
new /obj/effect/temp_visual/corpse_explosion(get_turf(target))
target.gib()
explosion(corpse_turf, 0, 0, 0, 0, silent = TRUE, breach = FALSE)
explosion(corpse_turf, 0, 0, 0, 0, silent = TRUE, cause = name, breach = FALSE)
for(var/mob/living/M in range(4, corpse_turf))
if(M == user)
continue
+1 -1
View File
@@ -72,7 +72,7 @@
/datum/status_effect/high_five/proc/wiz_effect(mob/living/carbon/user, mob/living/carbon/highfived)
user.status_flags |= GODMODE
highfived.status_flags |= GODMODE
explosion(get_turf(user), 5, 2, 1, 3, cause = id)
explosion(get_turf(user), 5, 2, 1, 3, cause = "Wizard high-five")
// explosions have a spawn so this makes sure that we don't get gibbed
addtimer(CALLBACK(src, PROC_REF(wiz_cleanup), user, highfived), 0.3 SECONDS) // I want to be sure this lasts long enough, with lag.
add_attack_logs(user, highfived, "caused a wizard [id] explosion")