Refactor explosion() (#31358)

* Refactor explosions

* Small change

* Final refactors

* A

* Helps for a very minor amount

* I'm silly

* Contra review

* Bring back this refactor

* Emerallddddd
This commit is contained in:
DGamerL
2026-02-17 19:20:12 +00:00
committed by GitHub
parent b5eabdf1a9
commit fd739ce146
8 changed files with 124 additions and 118 deletions
@@ -360,9 +360,9 @@
/datum/spell/pulse_demon/overload/proc/detonate(mob/living/basic/demon/pulse_demon/user, obj/machinery/target)
if(!QDELETED(target))
if(spell_level == level_max)
explosion(get_turf(target), 0, 1, 2, 2, smoke = TRUE, cause = "Pulse Demon: [name]")
explosion(get_turf(target), 0, 1, 2, 2, cause = "Pulse Demon: [name]")
else
explosion(get_turf(target), 0, 0, 2, 2, smoke = TRUE, cause = "Pulse Demon: [name]")
explosion(get_turf(target), 0, 0, 2, 2, cause = "Pulse Demon: [name]")
if(!QDELETED(target))
qdel(target)