This repository was archived by the owner on May 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 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"
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)
You can’t perform that action at this time.
0 commit comments