From 761a3511c5fd4b533631f57ffda2f1834a1098ce Mon Sep 17 00:00:00 2001 From: nemvar <47324920+nemvar@users.noreply.github.com> Date: Wed, 5 Jun 2019 08:38:23 +0200 Subject: [PATCH] Update backpack.dm (#44291) --- code/game/objects/items/storage/backpack.dm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/game/objects/items/storage/backpack.dm b/code/game/objects/items/storage/backpack.dm index 435f9dd57dd..c3da28515e8 100644 --- a/code/game/objects/items/storage/backpack.dm +++ b/code/game/objects/items/storage/backpack.dm @@ -297,10 +297,6 @@ w_class = WEIGHT_CLASS_NORMAL //Can fit in backpacks itself. level = 1 -/obj/item/storage/backpack/satchel/flat/Initialize() - . = ..() - ADD_TRAIT(src, TRAIT_T_RAY_VISIBLE, TRAIT_GENERIC) - /obj/item/storage/backpack/satchel/flat/ComponentInitialize() . = ..() var/datum/component/storage/STR = GetComponent(/datum/component/storage) @@ -312,10 +308,12 @@ invisibility = INVISIBILITY_OBSERVER anchored = TRUE //otherwise you can start pulling, cover it, and drag around an invisible backpack. icon_state = "[initial(icon_state)]2" + ADD_TRAIT(src, TRAIT_T_RAY_VISIBLE, TRAIT_GENERIC) else invisibility = initial(invisibility) anchored = FALSE icon_state = initial(icon_state) + REMOVE_TRAIT(src, TRAIT_T_RAY_VISIBLE, TRAIT_GENERIC) /obj/item/storage/backpack/satchel/flat/PopulateContents() var/datum/supply_pack/costumes_toys/randomised/contraband/C = new