[MIRROR] Explosions SS runtime fix + code cleanup (#461)

* Explosions SS runtime fix + code cleanup (#52894)

* runtime fix

* turf references are immortal

* Explosions SS runtime fix + code cleanup

Co-authored-by: Rohesie <rohesie@gmail.com>
This commit is contained in:
SkyratBot
2020-08-21 21:30:43 +01:00
committed by GitHub
co-authored by Rohesie
parent 98f195e72c
commit d3f6e8d49f
28 changed files with 164 additions and 164 deletions
@@ -406,16 +406,14 @@
switch (severity)
if (EXPLODE_DEVASTATE)
if(bomb_armor < EXPLODE_GIB_THRESHOLD) //gibs the mob if their bomb armor is lower than EXPLODE_GIB_THRESHOLD
for(var/I in contents)
var/atom/A = I
if(!QDELETED(A))
switch(severity)
if(EXPLODE_DEVASTATE)
SSexplosions.highobj += A
if(EXPLODE_HEAVY)
SSexplosions.medobj += A
if(EXPLODE_LIGHT)
SSexplosions.lowobj += A
for(var/thing in contents)
switch(severity)
if(EXPLODE_DEVASTATE)
SSexplosions.high_mov_atom += thing
if(EXPLODE_HEAVY)
SSexplosions.med_mov_atom += thing
if(EXPLODE_LIGHT)
SSexplosions.low_mov_atom += thing
gib()
return
else
@@ -463,7 +463,7 @@ Difficulty: Hard
if(charging)
if(isturf(A) || isobj(A) && A.density)
if(isobj(A))
SSexplosions.medobj += A
SSexplosions.med_mov_atom += A
else
SSexplosions.medturf += A
DestroySurroundings()
@@ -273,7 +273,7 @@ Difficulty: Very Hard
. = ..()
if(isturf(target) || isobj(target))
if(isobj(target))
SSexplosions.medobj += target
SSexplosions.med_mov_atom += target
else
SSexplosions.medturf += target