Structures Armor Fix

This commit is contained in:
Fox McCloud
2020-06-25 13:58:02 -04:00
parent 057a618f03
commit e2d405cf36
+5 -2
View File
@@ -7,8 +7,6 @@
var/broken = FALSE
/obj/structure/New()
if (!armor)
armor = list("melee" = 0, "bullet" = 0, "laser" = 0, "energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 50, "acid" = 50)
..()
if(smooth)
if(SSticker && SSticker.current_state == GAME_STATE_PLAYING)
@@ -20,6 +18,11 @@
if(SSticker)
GLOB.cameranet.updateVisibility(src)
/obj/structure/Initialize(mapload)
if(!armor)
armor = list("melee" = 0, "bullet" = 0, "laser" = 0, "energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 50, "acid" = 50)
. = ..()
/obj/structure/Destroy()
if(SSticker)
GLOB.cameranet.updateVisibility(src)