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
@@ -141,7 +141,7 @@
fireflash_sm(T, radius, 2200 + radius * 250, radius * 50)
if(will_explode)
var/boomrange = min(max(min_explosion_radius, round(volume * volume_explosion_radius_multiplier + volume_explosion_radius_modifier)), max_explosion_radius)
explosion(T, -1, -1, boomrange, 1)
explosion(T, -1, -1, boomrange, 1, cause = "Hot Welding Fuel Reagent")
/datum/reagent/fuel/reaction_turf(turf/T, volume) //Don't spill the fuel, or you'll regret it
if(isspaceturf(T))
@@ -20,7 +20,7 @@
/datum/chemical_reaction/crank/on_reaction(datum/reagents/holder, created_volume)
var/turf/T = get_turf(holder.my_atom)
fireflash(holder.my_atom, 1)
explosion(T, 0, 0, 2)
explosion(T, 0, 0, 2, cause = "Crank reaction")
/datum/chemical_reaction/krokodil
name = "Krokodil"
@@ -81,7 +81,7 @@
/datum/chemical_reaction/mephedrone/on_reaction(datum/reagents/holder) //Will make it harder for botany, need a chem heater or will suffer, and mixing in plants wont work
var/turf/T = get_turf(holder.my_atom)
fireflash(holder.my_atom, 3, 500)
explosion(T, 0, 0, 2, 2, flame_range = 2)
explosion(T, 0, 0, 2, 2, flame_range = 2, cause = "Mephedrone reaction")
/datum/chemical_reaction/jenkem
name = "Jenkem"
@@ -172,9 +172,9 @@
var/ex_light = round(created_volume / 20)
var/ex_flash = round(created_volume / 8)
if(istype(holder.my_atom)) //ensures the explosion happens at the container, not where its primed at
explosion(holder.my_atom.loc, ex_severe, ex_heavy,ex_light, ex_flash, 1)
explosion(holder.my_atom.loc, ex_severe, ex_heavy,ex_light, ex_flash, 1, cause = "Blackpowder Explosion")
else
explosion(prime_location, ex_severe, ex_heavy,ex_light, ex_flash, 1)
explosion(prime_location, ex_severe, ex_heavy,ex_light, ex_flash, 1, cause = "Blackpowder Explosion")
// If this black powder is in a decal, remove the decal, because it just exploded
if(istype(holder.my_atom, /obj/effect/decal/cleanable/dirt/blackpowder))
qdel(holder.my_atom)
@@ -342,7 +342,7 @@
/datum/chemical_reaction/azide/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
explosion(location, 0, 1, 4)
explosion(location, 0, 1, 4, cause = "Azide reaction")
/datum/chemical_reaction/firefighting_foam
name = "firefighting_foam"
@@ -364,7 +364,7 @@
/datum/chemical_reaction/clf3_firefighting/on_reaction(datum/reagents/holder, created_volume)
var/location = get_turf(holder.my_atom)
explosion(location, -1, 0, 2)
explosion(location, -1, 0, 2, cause = "CLF3 reaction")
/datum/chemical_reaction/shock_explosion
name = "shock_explosion"
@@ -536,7 +536,7 @@
var/turf/extract_turf = get_turf(extract)
message_admins("[who] triggered an oil slime explosion at [COORD(extract_turf)].")
log_game("[who] triggered an oil slime explosion at [COORD(extract_turf)].")
explosion(extract_turf, 1, 3, 6)
explosion(extract_turf, 1, 3, 6, cause = "Oil Slime explosion")
/datum/chemical_reaction/oil_slick
name = "Oil Potion"
+1 -1
View File
@@ -275,7 +275,7 @@
reagent_id = "beer"
/obj/structure/reagent_dispensers/beerkeg/blob_act(obj/structure/blob/B)
explosion(loc, 0, 3, 5, 7, 10)
explosion(loc, 0, 3, 5, 7, 10, cause = "Blob caused [src] to explode.")
if(!QDELETED(src))
qdel(src)