From 69d695ca1862f4b1f1ca142c582ea0116c2bbbe8 Mon Sep 17 00:00:00 2001 From: GuillaumePrata <55374212+GuillaumePrata@users.noreply.github.com> Date: Wed, 15 Sep 2021 18:57:55 -0300 Subject: [PATCH] Winter coat allowed item fixes (#61450) Sometime ago I cleaned a slice of the winter coats to cut on copy pasta in their allowed list and important items being missed there but I misunderstood how the global list of allowed security items work, which ended up with the global list overwriting my base list. So this fix that, also thanks Athath for bullying me about this issue a few months ago before I went on coding hiatus... Also since I was here I decided to fix the allowed list for the janitor winter coat, it had some odd items without a worn_icon so we had the annoying bugged sprites with it. --- code/game/objects/items/holosign_creator.dm | 1 + code/modules/clothing/suits/wintercoats.dm | 12 +++--------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/code/game/objects/items/holosign_creator.dm b/code/game/objects/items/holosign_creator.dm index 915701c2ef4..0c1ca9de478 100644 --- a/code/game/objects/items/holosign_creator.dm +++ b/code/game/objects/items/holosign_creator.dm @@ -4,6 +4,7 @@ icon = 'icons/obj/device.dmi' icon_state = "signmaker" inhand_icon_state = "electronic" + worn_icon_state = "electronic" lefthand_file = 'icons/mob/inhands/misc/devices_lefthand.dmi' righthand_file = 'icons/mob/inhands/misc/devices_righthand.dmi' force = 0 diff --git a/code/modules/clothing/suits/wintercoats.dm b/code/modules/clothing/suits/wintercoats.dm index 19c1a676b3c..4f762044631 100644 --- a/code/modules/clothing/suits/wintercoats.dm +++ b/code/modules/clothing/suits/wintercoats.dm @@ -49,7 +49,7 @@ /obj/item/clothing/suit/hooded/wintercoat/centcom/Initialize() . = ..() - allowed = GLOB.security_wintercoat_allowed + allowed += GLOB.security_wintercoat_allowed /obj/item/clothing/head/hooded/winterhood/centcom icon_state = "hood_centcom" @@ -68,7 +68,7 @@ /obj/item/clothing/suit/hooded/wintercoat/captain/Initialize() . = ..() - allowed = GLOB.security_wintercoat_allowed + allowed += GLOB.security_wintercoat_allowed /obj/item/clothing/head/hooded/winterhood/captain icon_state = "hood_captain" @@ -120,15 +120,9 @@ allowed = list( /obj/item/grenade/chem_grenade, /obj/item/holosign_creator, - /obj/item/key/janitor, - /obj/item/lightreplacer, - /obj/item/melee/flyswatter, - /obj/item/paint/paint_remover, /obj/item/reagent_containers/glass/beaker, /obj/item/reagent_containers/glass/bottle, - /obj/item/reagent_containers/glass/bucket, /obj/item/reagent_containers/spray, - /obj/item/soap, ) hoodtype = /obj/item/clothing/head/hooded/winterhood/janitor @@ -147,7 +141,7 @@ /obj/item/clothing/suit/hooded/wintercoat/security/Initialize() . = ..() - allowed = GLOB.security_wintercoat_allowed + allowed += GLOB.security_wintercoat_allowed /obj/item/clothing/head/hooded/winterhood/security desc = "A red, armour-padded winter hood. Definitely not bulletproof, especially not the part where your face goes."