mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 04:57:57 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user