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

Commit 89461c7

Browse files
committed
Might be more reasonable
1 parent 7b55b8c commit 89461c7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

code/modules/clothing/chameleon.dm

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,11 @@
134134
message_admins("Uniform: [outfit.uniform]")
135135
message_admins("Suit: [outfit.suit]")
136136
for(var/i in 1 to types.len)
137-
var/datum/action/item_action/chameleon/change/A = user.chameleon_item_actions[i]
138-
message_admins("T: [types[i]]")
139-
A.update_look(user, types[i])
137+
for(var/V in user.chameleon_item_actions)
138+
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])
140142
return TRUE
141143
//hardsuit helmets/suit hoods
142144
if(O.toggle_helmet && (ispath(O.suit, /obj/item/clothing/suit/space/hardsuit) || ispath(O.suit, /obj/item/clothing/suit/hooded)) && ishuman(user))

0 commit comments

Comments
 (0)