|
100 | 100 | return select_outfit(owner) |
101 | 101 |
|
102 | 102 | /datum/action/chameleon_outfit/proc/select_outfit(mob/user, datum/outfit/outfit = null) |
103 | | - message_admins("select_outfit called") |
104 | 103 | if(!user || !IsAvailable(feedback = FALSE)) |
105 | 104 | return FALSE |
106 | 105 | var/datum/outfit/O |
|
111 | 110 | var/outfit_type = outfit_options[selected] |
112 | 111 | if(!outfit_type) |
113 | 112 | return FALSE |
114 | | - message_admins(outfit_type) |
115 | 113 | O = new outfit_type() |
116 | | - message_admins(O) |
117 | 114 | var/list/outfit_types = O.get_chameleon_disguise_info() |
118 | 115 | for(var/V in user.chameleon_item_actions) |
119 | 116 | var/datum/action/item_action/chameleon/change/A = V |
120 | 117 | var/done = FALSE |
121 | 118 | for(var/T in outfit_types) |
122 | 119 | for(var/name in A.chameleon_list) |
123 | 120 | if(A.chameleon_list[name] == T) |
124 | | - message_admins("List: [A.chameleon_list[name]], T: [T]") |
125 | 121 | A.update_look(user, T) |
126 | 122 | outfit_types -= T |
127 | 123 | done = TRUE |
|
130 | 126 | break |
131 | 127 | else //If a specific outfit is passed through |
132 | 128 | var/list/types = outfit.get_chameleon_disguise_info() |
133 | | - message_admins(outfit) |
134 | | - message_admins("Uniform: [outfit.uniform]") |
135 | | - message_admins("Suit: [outfit.suit]") |
136 | | - for(var/i in 1 to types.len) |
| 129 | + for(var/T in types) |
137 | 130 | for(var/V in user.chameleon_item_actions) |
138 | 131 | var/datum/action/item_action/chameleon/change/A = V |
139 | | - if(istype(types[i], A.chameleon_type)) |
140 | | - message_admins("T: [types[i]]") |
141 | | - A.update_look(user, types[i]) |
| 132 | + if(istype(T, A.chameleon_type)) |
| 133 | + A.update_look(user, T) |
142 | 134 | return TRUE |
143 | 135 | //hardsuit helmets/suit hoods |
144 | 136 | if(O.toggle_helmet && (ispath(O.suit, /obj/item/clothing/suit/space/hardsuit) || ispath(O.suit, /obj/item/clothing/suit/hooded)) && ishuman(user)) |
|
216 | 208 | var/mob/living/carbon/human/T = target_atom |
217 | 209 | var/datum/outfit/O = new() |
218 | 210 | to_chat(owner, span_notice("Attempting to copy [T]...")) |
219 | | - if(!do_after(owner, 5 SECONDS, target_atom)) |
| 211 | + if(!do_after(owner, 10 SECONDS, target_atom)) |
220 | 212 | return |
221 | 213 | O.uniform = T.w_uniform |
222 | 214 | O.suit = T.wear_suit |
|
226 | 218 | O.ears = T.ears |
227 | 219 | O.glasses = T.glasses |
228 | 220 | O.mask = T.wear_mask |
229 | | - O.neck = T.wear_neck |
230 | 221 | var/datum/action/chameleon_outfit/select = locate(/datum/action/chameleon_outfit) in owner.actions |
231 | 222 | select.select_outfit(owner, O) |
232 | 223 | to_chat(owner, span_notice("Successfully copied [T]!")) |
|
0 commit comments