Fix for chameleon suit allowing you to pick an undefined object

Stop chameleon suit allowing you to choose a undefined suit with a placeholder texture, as well as making the first option in the list a random color for each individual suit.
This commit is contained in:
AzuleUtama
2018-11-20 15:19:54 +00:00
parent bed2c8ae34
commit d667df47eb
+3 -2
View File
@@ -12,11 +12,12 @@
New()
..()
for(var/U in subtypesof(/obj/item/clothing/under/color))
var/blocked = list(/obj/item/clothing/under/color/random, /obj/item/clothing/under/rank/centcom) // Stops random coloured jumpsuit and undefined centcomm suit appearing in the list.
for(var/U in subtypesof(/obj/item/clothing/under/color)-blocked)
var/obj/item/clothing/under/V = new U
src.clothing_choices += V
for(var/U in subtypesof(/obj/item/clothing/under/rank))
for(var/U in subtypesof(/obj/item/clothing/under/rank)-blocked)
var/obj/item/clothing/under/V = new U
src.clothing_choices += V
return