Skip to content

Commit

Permalink
Adds Chameleon Tie (#27840)
Browse files Browse the repository at this point in the history
* the tie

* colour change

---------

Co-authored-by: Bmon <[email protected]>
  • Loading branch information
Bm0n and Bmon authored Jan 10, 2025
1 parent d28c584 commit 43e242a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 2 additions & 0 deletions code/game/objects/items/weapons/storage/uplink_kits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
31 changes: 30 additions & 1 deletion code/modules/clothing/chameleon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 43e242a

Please sign in to comment.