Skip to content

Commit

Permalink
bugfix: chameleon presets. (#3764)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daeberdir authored Oct 25, 2023
1 parent a9b0ba5 commit df3dee5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/modules/clothing/chameleon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,13 @@
if(chameleon_blacklist[V] || (initial(I.flags) & ABSTRACT) || !initial(I.icon_state))
continue
var/chameleon_item_name = "[initial(I.name)] ([initial(I.icon_state)])"
chameleon_list[chameleon_item_name] = I
var/copies = FALSE
for(var/chameleon_item_index in chameleon_list)
if(chameleon_item_index == chameleon_item_name)
copies = TRUE
break
if(!copies)
chameleon_list[chameleon_item_name] = I

/datum/action/item_action/chameleon/change/proc/select_look(mob/user)
var/obj/item/picked_item
Expand Down

0 comments on commit df3dee5

Please sign in to comment.