From e2d405cf36119a0e37050eeaaac3843ebe9c054b Mon Sep 17 00:00:00 2001 From: Fox McCloud Date: Thu, 25 Jun 2020 13:58:02 -0400 Subject: [PATCH] Structures Armor Fix --- code/game/objects/structures.dm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/game/objects/structures.dm b/code/game/objects/structures.dm index 663f210df3e..5a48958aca9 100644 --- a/code/game/objects/structures.dm +++ b/code/game/objects/structures.dm @@ -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)