mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user