From 43e242a6ef842269e761e9b2a64bd466a983fb40 Mon Sep 17 00:00:00 2001 From: Bm0n <92271472+Bm0n@users.noreply.github.com> Date: Fri, 10 Jan 2025 14:34:59 -0500 Subject: [PATCH] Adds Chameleon Tie (#27840) * the tie * colour change --------- Co-authored-by: Bmon --- .../items/weapons/storage/uplink_kits.dm | 2 ++ code/modules/clothing/chameleon.dm | 31 ++++++++++++++++++- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/weapons/storage/uplink_kits.dm b/code/game/objects/items/weapons/storage/uplink_kits.dm index 9764f68aeafc..ce5563fcb712 100644 --- a/code/game/objects/items/weapons/storage/uplink_kits.dm +++ b/code/game/objects/items/weapons/storage/uplink_kits.dm @@ -472,6 +472,7 @@ new /obj/item/radio/headset/chameleon(src) new /obj/item/pda/chameleon(src) new /obj/item/clothing/mask/chameleon(src) + new /obj/item/clothing/neck/chameleon(src) /obj/item/storage/box/syndie_kit/chameleon/nuke name = "operative's chameleon kit" @@ -488,6 +489,7 @@ new /obj/item/pda/chameleon(src) new /obj/item/stamp/chameleon(src) new /obj/item/clothing/mask/chameleon/voice_change(src) + new /obj/item/clothing/neck/chameleon(src) /obj/item/storage/box/syndie_kit/dart_gun name = "dart gun kit" diff --git a/code/modules/clothing/chameleon.dm b/code/modules/clothing/chameleon.dm index 3a5d9ff0b243..84daa8eae4ba 100644 --- a/code/modules/clothing/chameleon.dm +++ b/code/modules/clothing/chameleon.dm @@ -72,7 +72,7 @@ /datum/action/item_action/chameleon_change/New(Target) . = ..() holder = Target - + /datum/action/item_action/chameleon_change/Grant(mob/M) if(M && (owner != M)) @@ -712,6 +712,35 @@ . = ..() chameleon_action.emp_randomise(INFINITY) +/obj/item/clothing/neck/chameleon + name = "black tie" + desc = "A neosilk clip-on tie." + icon = 'icons/obj/clothing/neck.dmi' + icon_state = "blacktie" + resistance_flags = NONE + + var/datum/action/item_action/chameleon_change/chameleon_action + +/obj/item/clothing/neck/chameleon/Initialize(mapload) + . = ..() + chameleon_action = new(src) + chameleon_action.chameleon_type = /obj/item/clothing/neck + chameleon_action.chameleon_name = "Tie" + chameleon_action.chameleon_blacklist = list() + chameleon_action.initialize_disguises() + +/obj/item/clothing/neck/chameleon/Destroy() + QDEL_NULL(chameleon_action) + return ..() + +/obj/item/clothing/neck/chameleon/emp_act(severity) + . = ..() + chameleon_action.emp_randomise() + +/obj/item/clothing/neck/chameleon/broken/Initialize(mapload) + . = ..() + chameleon_action.emp_randomise(INFINITY) + /datum/action/item_action/chameleon_change/modsuit/update_item(obj/item/picked_item) if(ismodcontrol(target)) var/obj/item/mod/control/C = target