From 62ea1866f9200787bc4cf7aa2594ad5b141db35a Mon Sep 17 00:00:00 2001 From: kcin2001 Date: Sun, 9 Jul 2017 21:59:47 -0700 Subject: [PATCH] new tesh items - loadout edition --- .../loadout/loadout_xeno_vr.dm | 47 ++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/code/modules/client/preference_setup/loadout/loadout_xeno_vr.dm b/code/modules/client/preference_setup/loadout/loadout_xeno_vr.dm index 2c34d13088..d901eeed3f 100644 --- a/code/modules/client/preference_setup/loadout/loadout_xeno_vr.dm +++ b/code/modules/client/preference_setup/loadout/loadout_xeno_vr.dm @@ -32,4 +32,49 @@ display_name = "alien mask (Vox)" path = /obj/item/clothing/mask/gas/swat/vox sort_category = "Xenowear" - whitelisted = "Vox" \ No newline at end of file + whitelisted = "Vox" + +//TESH STOOF + +/datum/gear/uniform/tesh_undercoats + display_name = "teshari undercoat selection" + path = /obj/item/clothing/under/seromi/undercoat/black_orange + sort_category = "Xenowear" + whitelisted = "Teshari" + +/datum/gear/uniform/tesh_undercoats/New() + ..() + var/list/undercoats= list() + for(var/coat in typesof(/obj/item/clothing/under/seromi/undercoat)) + var/obj/item/clothing/under/seromi/undercoat/coats = coat + undercoats[initial(coats.name)] = coats + gear_tweaks += new/datum/gear_tweak/path(sortAssoc(undercoats)) + +/datum/gear/suit/tesh_cloaks + display_name = "Teshari Cloak selection" + path = /obj/item/clothing/suit/storage/seromi/cloak/ + sort_category = "Xenowear" + whitelisted = "Teshari" + +/datum/gear/suit/tesh_cloaks/New()//i hate this code -the person who is trying for a whole day to make this code work + ..() + var/list/teshsuits = list() + for(var/tsuit in typesof(/obj/item/clothing/suit/storage/seromi/cloak)) + var/obj/item/clothing/suit/storage/seromi/cloak/tsuit_type = tsuit + teshsuits[initial(tsuit_type.name)] = tsuit_type + gear_tweaks += new/datum/gear_tweak/path(sortAssoc(teshsuits)) + + +/* +/datum/gear/suit/tesh_cloak + display_name = "teshari coat selection" + path = /obj/item/clothing/under/seromi/undercoat/ + +/datum/gear/suit/tesh_cloak/New() + ..() + var/list/hazards = list() + for(var/hazard_style in typesof(/obj/item/clothing/suit/seromi/cloak)) + var/obj/item/clothing/suit/seromi/cloak/hazardvest = hazard_style + hazards[initial(hazardvest.name)] = hazardvest + gear_tweaks += new/datum/gear_tweak/path(sortAssoc(hazards)) +*/ \ No newline at end of file