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
-3
View File
@@ -470,7 +470,6 @@ SUBSYSTEM_DEF(explosions)
lowturf = list()
for(var/thing in low_turf)
var/turf/turf_thing = thing
turf_thing.explosion_level = max(turf_thing.explosion_level, EXPLODE_LIGHT)
turf_thing.ex_act(EXPLODE_LIGHT)
cost_lowturf = MC_AVERAGE(cost_lowturf, TICK_DELTA_TO_MS(TICK_USAGE_REAL - timer))
@@ -479,7 +478,6 @@ SUBSYSTEM_DEF(explosions)
medturf = list()
for(var/thing in med_turf)
var/turf/turf_thing = thing
turf_thing.explosion_level = max(turf_thing.explosion_level, EXPLODE_HEAVY)
turf_thing.ex_act(EXPLODE_HEAVY)
cost_medturf = MC_AVERAGE(cost_medturf, TICK_DELTA_TO_MS(TICK_USAGE_REAL - timer))
@@ -488,7 +486,6 @@ SUBSYSTEM_DEF(explosions)
highturf = list()
for(var/thing in high_turf)
var/turf/turf_thing = thing
turf_thing.explosion_level = max(turf_thing.explosion_level, EXPLODE_DEVASTATE)
turf_thing.ex_act(EXPLODE_DEVASTATE)
cost_highturf = MC_AVERAGE(cost_highturf, TICK_DELTA_TO_MS(TICK_USAGE_REAL - timer))