From c77a7d4c00a3649e13ec40bb964cec9a248d84a4 Mon Sep 17 00:00:00 2001 From: Yoshax Date: Thu, 21 Apr 2016 22:29:30 +0100 Subject: [PATCH] Makes cheongasms use fancy loadout tweak stuff --- .../loadout/loadout_uniform.dm | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/code/modules/client/preference_setup/loadout/loadout_uniform.dm b/code/modules/client/preference_setup/loadout/loadout_uniform.dm index 8f8eef75d9..a3c5fa5a29 100644 --- a/code/modules/client/preference_setup/loadout/loadout_uniform.dm +++ b/code/modules/client/preference_setup/loadout/loadout_uniform.dm @@ -6,20 +6,15 @@ sort_category = "Uniforms and Casual Dress" /datum/gear/uniform/cheongsam - display_name = "cheongsam, white" - path = /obj/item/clothing/under/cheongsam + display_name = "cheongsam" -/datum/gear/uniform/cheongsam/red - display_name = "cheongsam, red" - path = /obj/item/clothing/under/cheongsam/red - -/datum/gear/uniform/cheongsam/blue - display_name = "cheongsam, blue" - path = /obj/item/clothing/under/cheongsam/blue - -/datum/gear/uniform/cheongsam/ - display_name = "cheongsam, black" - path = /obj/item/clothing/under/cheongsam/black +/datum/gear/uniform/cheongsam/New() + ..() + var/list/cheongasms = list() + for(var/cheongasm in typesof(/obj/item/clothing/under/cheongsam)) + var/obj/item/clothing/under/cheongsam/cheongasm_type = cheongasm + cheongasms[initial(cheongasm_type.name)] = cheongasm_type + gear_tweaks += new/datum/gear_tweak/path(sortAssoc(cheongasms)) /datum/gear/uniform/kilt display_name = "kilt"