From d667df47eb39e6bf9d6bab7a76d8fbf8c7b343e9 Mon Sep 17 00:00:00 2001 From: AzuleUtama <44248086+AzuleUtama@users.noreply.github.com> Date: Tue, 20 Nov 2018 15:19:54 +0000 Subject: [PATCH] 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. --- code/modules/clothing/under/chameleon.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/clothing/under/chameleon.dm b/code/modules/clothing/under/chameleon.dm index 8828f7a4c2e..038a062f64b 100644 --- a/code/modules/clothing/under/chameleon.dm +++ b/code/modules/clothing/under/chameleon.dm @@ -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