mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
[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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user