Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 8c907d8

Browse files
committed
Back to chameleon copying, I guess
1 parent 00cea31 commit 8c907d8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

code/modules/clothing/chameleon.dm

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,26 @@
142142
qdel(O)
143143
return TRUE
144144

145+
/datum/action/chameleon_copy
146+
name = "Copy person"
147+
button_icon_state = "default" //Temporary, just to test it works
148+
var/syndicate = FALSE
149+
var/active = FALSE
150+
var/copying = FALSE
151+
152+
/datum/action/chameleon_copy/Grant(mob/M)
153+
if(syndicate)
154+
owner_has_control = is_syndicate(M)
155+
return ..()
156+
157+
/datum/action/chameleon_copy/Trigger(trigger_flags, atom/target)
158+
if(active)
159+
active = !active
160+
build_all_button_icons()
161+
return FALSE
162+
to_chat(owner, span_announce("Whom shall your chameleon kit copy?")) //Bad wording, need to improve it
163+
active = !active
164+
build_all_button_icons()
145165

146166
/datum/action/item_action/chameleon/change
147167
name = "Chameleon Change"
@@ -160,6 +180,9 @@
160180
var/datum/action/chameleon_outfit/O = new /datum/action/chameleon_outfit()
161181
O.syndicate = syndicate
162182
O.Grant(M)
183+
var/datum/action/chameleon_copy/C = new /datum/action/chameleon_copy()
184+
C.syndicate = syndicate
185+
C.Grant(M)
163186
else
164187
M.chameleon_item_actions |= src
165188
if(syndicate)

0 commit comments

Comments
 (0)