mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 00:27:31 +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:
@@ -128,15 +128,17 @@
|
||||
// Stronger explosions cause serious damage to internal components
|
||||
// Minor explosions are mostly mitigitated by casing.
|
||||
/obj/machinery/modular_computer/ex_act(severity)
|
||||
if(cpu)
|
||||
switch(severity)
|
||||
if(EXPLODE_DEVASTATE)
|
||||
SSexplosions.high_mov_atom += cpu
|
||||
if(EXPLODE_HEAVY)
|
||||
SSexplosions.med_mov_atom += cpu
|
||||
if(EXPLODE_LIGHT)
|
||||
SSexplosions.low_mov_atom += cpu
|
||||
..()
|
||||
if(!cpu)
|
||||
return ..()
|
||||
|
||||
switch(severity)
|
||||
if(EXPLODE_DEVASTATE)
|
||||
SSexplosions.high_mov_atom += cpu
|
||||
if(EXPLODE_HEAVY)
|
||||
SSexplosions.med_mov_atom += cpu
|
||||
if(EXPLODE_LIGHT)
|
||||
SSexplosions.low_mov_atom += cpu
|
||||
return ..()
|
||||
|
||||
// EMPs are similar to explosions, but don't cause physical damage to the casing. Instead they screw up the components
|
||||
/obj/machinery/modular_computer/emp_act(severity)
|
||||
|
||||
Reference in New Issue
Block a user