Some explosions code cleanup (#57493)

Clears out two deprecated explosions systems (explosion ids and explosion levels)
Refactors a bunch of contents_explosions procs to be maybe slightly faster.
Cleans up a bunch of ex_act code.
Slightly cleaner code
A few less unused vars on /atom and /turf
This commit is contained in:
TemporalOroboros
2021-03-20 16:03:59 -07:00
committed by GitHub
parent a71c7657af
commit fb488fdfff
83 changed files with 358 additions and 326 deletions
@@ -121,17 +121,17 @@
/obj/singularity/ex_act(severity, target)
switch(severity)
if(1)
if(EXPLODE_DEVASTATE)
if(current_size <= STAGE_TWO)
investigate_log("has been destroyed by a heavy explosion.", INVESTIGATE_SINGULO)
qdel(src)
return
else
energy -= round(((energy+1)/2),1)
if(2)
energy -= round(((energy+1)/3),1)
if(3)
energy -= round(((energy+1)/4),1)
energy -= round(((energy + 1) / 2), 1)
if(EXPLODE_HEAVY)
energy -= round(((energy + 1) / 3), 1)
if(EXPLODE_LIGHT)
energy -= round(((energy + 1) / 4), 1)
/obj/singularity/process(delta_time)
if(current_size >= STAGE_TWO)