[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
@@ -496,14 +496,14 @@
req_access += pick(get_all_accesses())
/obj/structure/closet/contents_explosion(severity, target)
for(var/atom/A in contents)
for(var/thing in contents)
switch(severity)
if(EXPLODE_DEVASTATE)
SSexplosions.highobj += A
SSexplosions.high_mov_atom += thing
if(EXPLODE_HEAVY)
SSexplosions.medobj += A
SSexplosions.med_mov_atom += thing
if(EXPLODE_LIGHT)
SSexplosions.lowobj += A
SSexplosions.low_mov_atom += thing
/obj/structure/closet/singularity_act()
dump_contents()
+3 -3
View File
@@ -35,11 +35,11 @@
if(stored_extinguisher)
switch(severity)
if(EXPLODE_DEVASTATE)
SSexplosions.highobj += stored_extinguisher
SSexplosions.high_mov_atom += stored_extinguisher
if(EXPLODE_HEAVY)
SSexplosions.medobj += stored_extinguisher
SSexplosions.med_mov_atom += stored_extinguisher
if(EXPLODE_LIGHT)
SSexplosions.lowobj += stored_extinguisher
SSexplosions.low_mov_atom += stored_extinguisher
/obj/structure/extinguisher_cabinet/handle_atom_del(atom/A)
if(A == stored_extinguisher)
+4 -4
View File
@@ -116,14 +116,14 @@
update_icon()
/obj/structure/guncase/contents_explosion(severity, target)
for(var/atom/A in contents)
for(var/thing in contents)
switch(severity)
if(EXPLODE_DEVASTATE)
SSexplosions.highobj += A
SSexplosions.high_mov_atom += thing
if(EXPLODE_HEAVY)
SSexplosions.medobj += A
SSexplosions.med_mov_atom += thing
if(EXPLODE_LIGHT)
SSexplosions.lowobj += A
SSexplosions.low_mov_atom += thing
/obj/structure/guncase/shotgun
name = "shotgun locker"
@@ -58,14 +58,14 @@
empty_pod()
/obj/structure/transit_tube_pod/contents_explosion(severity, target)
for(var/atom/movable/AM in contents)
for(var/thing in contents)
switch(severity)
if(EXPLODE_DEVASTATE)
SSexplosions.highobj += AM
SSexplosions.high_mov_atom += thing
if(EXPLODE_HEAVY)
SSexplosions.medobj += AM
SSexplosions.med_mov_atom += thing
if(EXPLODE_LIGHT)
SSexplosions.lowobj += AM
SSexplosions.low_mov_atom += thing
/obj/structure/transit_tube_pod/singularity_pull(S, current_size)
..()