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

Commit 2e4beb5

Browse files
committed
Refinements
1 parent ac064eb commit 2e4beb5

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

code/modules/clothing/chameleon.dm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@
102102
/datum/action/chameleon_outfit/proc/select_outfit(mob/user)
103103
if(!user || !IsAvailable(feedback = FALSE))
104104
return FALSE
105-
var/datum/outfit/O
106105
var/selected = tgui_input_list(user, "Select outfit to change into", "Chameleon Outfit", outfit_options)
107106
if(!IsAvailable(feedback = FALSE) || QDELETED(src) || QDELETED(user))
108107
return FALSE
109108
var/outfit_type = outfit_options[selected]
110109
if(!outfit_type)
111110
return FALSE
112-
O = new outfit_type()
111+
var/datum/outfit/O = new outfit_type()
113112
var/list/outfit_types = O.get_chameleon_disguise_info()
113+
114114
for(var/V in user.chameleon_item_actions)
115115
var/datum/action/item_action/chameleon/change/A = V
116116
var/done = FALSE
@@ -214,7 +214,8 @@
214214
for(var/Y in types)
215215
for(var/V in owner.chameleon_item_actions)
216216
var/datum/action/item_action/chameleon/change/A = V
217-
if(A.chameleon_blacklist[Y])
217+
var/obj/item/I = Y
218+
if(A.chameleon_blacklist[Y] || (initial(I.item_flags) & ABSTRACT || !initial(I.icon_state)))
218219
continue
219220
if(istype(Y, A.chameleon_type)) //Need to make sure it's the right type, wouldn't want to wear an armour vest on your head.
220221
A.update_look(owner, Y)

yogstation/code/modules/antagonists/infiltrator/objectives.dm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,17 @@ GLOBAL_LIST_INIT(infiltrator_kidnap_areas, typecacheof(list(/area/shuttle/yogs/s
166166
if(!considered_escaped(M))
167167
continue
168168
var/mob/living/carbon/human/H = M.current
169+
var/mob/living/carbon/human/T = target.current
169170
var/clothing = H.chameleon_item_actions.len //8 possible clothes: Head, suit, ears, glasses, uniform, shoes, gloves, backpack
170171
var/copied = TRUE
171172
for(var/datum/action/item_action/chameleon/change/V in H.chameleon_item_actions)
172173
if(!V.copying)
173174
clothing -= 1
174-
if(V.copy_target != target)
175+
if(V.copy_target != T)
175176
clothing -= 1
176177
if(clothing<3) //Some leniency if you don't have the required clothes or your target isn't wearing many, but not complete leniency
177178
copied = FALSE
179+
break
178180
if(!copied)
179181
continue
180182
if(H.get_id_name() == target_real_name || target_missing_id)

0 commit comments

Comments
 (0)