From dee4d2146b802d94b6ed26edda0fb2bddc74b443 Mon Sep 17 00:00:00 2001 From: atermonera Date: Sat, 26 Nov 2022 12:47:52 -0800 Subject: [PATCH] Adds more generic clothing paintkit. --- code/game/objects/items/paintkit.dm | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/code/game/objects/items/paintkit.dm b/code/game/objects/items/paintkit.dm index a21b6e2646..be679290b3 100644 --- a/code/game/objects/items/paintkit.dm +++ b/code/game/objects/items/paintkit.dm @@ -60,8 +60,8 @@ ..() /// Ponchos specifically, but other accessories may eventually need this. -/// Consequence of snowflake-y teshari code. -/obj/item/kit/accessory +/// Consequence of snowflake-y teshari code. +/obj/item/kit/accessory name = "accessory modification kit" desc = "A kit for modifying accessories." @@ -78,6 +78,17 @@ to_chat(user, "You set about modifying the poncho into [new_name].") return ..() +/// General clothing items, that need to set item_state.. +/obj/item/kit/clothing + name = "clothing modification kit" + desc = "A kit for modifying clothing." + +/obj/item/kit/clothing/customize(var/obj/item/clothing/I, var/mob/user) + if(istype(I) && can_customize(I)) + I.sprite_sheets[SPECIES_TESHARI] = new_icon_override_file /// Will look the same on teshari and other species. + I.item_state = new_icon + return ..() + // Root hardsuit kit defines. // Icons for modified hardsuits need to be in the proper .dmis because suit cyclers may cock them up. /obj/item/kit/suit @@ -339,4 +350,4 @@ name = "\"Gaoler\" Gygax customisation kit" new_name = "Durand \"Gaoler\"" new_desc = "A bulky silver Gygax exosuit. The extra armour appears to be painted on, but it's very shiny." - new_icon = "recitence" \ No newline at end of file + new_icon = "recitence"