Merge pull request #13689 from Fox-McCloud/armor-fix

Structures Armor Fix
This commit is contained in:
variableundefined
2020-06-25 20:37:11 -04:00
committed by GitHub
+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)
return ..()
/obj/structure/Destroy()
if(SSticker)
GLOB.cameranet.updateVisibility(src)