From d6e48e44310a2d2b652b21ccb0b28d19ac113191 Mon Sep 17 00:00:00 2001 From: Geeves Date: Sat, 16 Oct 2021 16:59:25 +0200 Subject: [PATCH] Recolorable White-Tip Sneakers (#12617) --- .../preference_setup/loadout/loadout_shoes.dm | 3 ++- code/modules/clothing/clothing.dm | 4 +--- code/modules/clothing/shoes/colour.dm | 8 ++++++++ html/changelogs/geeves-recolorable_shoe.yml | 6 ++++++ icons/clothing/shoes/recolorable.dmi | Bin 0 -> 578 bytes 5 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 html/changelogs/geeves-recolorable_shoe.yml create mode 100644 icons/clothing/shoes/recolorable.dmi diff --git a/code/modules/client/preference_setup/loadout/loadout_shoes.dm b/code/modules/client/preference_setup/loadout/loadout_shoes.dm index 0eb04ac7d5b..bd21f1db724 100644 --- a/code/modules/client/preference_setup/loadout/loadout_shoes.dm +++ b/code/modules/client/preference_setup/loadout/loadout_shoes.dm @@ -136,6 +136,7 @@ ..() var/list/recolourable_shoes = list() recolourable_shoes["sneakers"] = /obj/item/clothing/shoes/sneakers + recolourable_shoes["sneakers (white tip)"] = /obj/item/clothing/shoes/sneakers/whitetip recolourable_shoes["oxfords"] = /obj/item/clothing/shoes/laceup/colourable gear_tweaks += new /datum/gear_tweak/path(recolourable_shoes) @@ -161,4 +162,4 @@ var/datum/gear_tweak/shoe_layer/gear_tweak_shoe_layer = new() if(metadata == "Over") S.shoes_under_pants = FALSE else - S.shoes_under_pants = TRUE \ No newline at end of file + S.shoes_under_pants = TRUE diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index bd35b9797cb..6a5faf0e252 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -816,10 +816,8 @@ /obj/item/clothing/shoes/update_icon() cut_overlays() - worn_overlay = null if(holding) - worn_overlay = "knife" - add_overlay(overlay_image(icon, "[initial(icon_state)]_[worn_overlay]", flags=RESET_COLOR)) + add_overlay(overlay_image(icon, "[initial(icon_state)]_knife", flags=RESET_COLOR)) if(ismob(usr)) var/mob/M = usr M.update_inv_shoes() diff --git a/code/modules/clothing/shoes/colour.dm b/code/modules/clothing/shoes/colour.dm index beb4265021d..82d2f3e84d8 100644 --- a/code/modules/clothing/shoes/colour.dm +++ b/code/modules/clothing/shoes/colour.dm @@ -100,6 +100,14 @@ icon_state = "sneakers" item_state = "sneakers" +/obj/item/clothing/shoes/sneakers/whitetip + icon = 'icons/clothing/shoes/recolorable.dmi' + icon_state = "shoe" + item_state = "shoe" + worn_overlay = "over" + contained_sprite = TRUE + build_from_parts = TRUE + /obj/item/clothing/shoes/medical name = "doctor shoes" desc = "A pair of green and white shoes intended for safety around patients." diff --git a/html/changelogs/geeves-recolorable_shoe.yml b/html/changelogs/geeves-recolorable_shoe.yml new file mode 100644 index 00000000000..d0b99ab9629 --- /dev/null +++ b/html/changelogs/geeves-recolorable_shoe.yml @@ -0,0 +1,6 @@ +author: Geeves + +delete-after: True + +changes: + - rscadd: "Added another variant of sneakers to the recolorable shoe selection, the tip of the shoes stays white." \ No newline at end of file diff --git a/icons/clothing/shoes/recolorable.dmi b/icons/clothing/shoes/recolorable.dmi new file mode 100644 index 0000000000000000000000000000000000000000..cad750467c404f50ad34fc5370074bd2b34abcca GIT binary patch literal 578 zcmV-I0=@l-P)Sy@^1^z`ZJ>D}Gke0h0RR#w5m!EbGCV_{)FK0bba zenCM&EiEm@#l@_yu9TRV|NsB!>gvhM%fP_ER$5zugM)2wa6&>tWhRu{00001bW%=J z06^y0W&i*He0o$^bVOxyV{&P5bZKvH004NLQ&wi#3KUIl~GbOXA7|1o`;!G<_%uR)` zQ541J1C1t5WpM^Voe5rbXojLHR#tHJa{+q_0Of=~QQ@(^C;$Kf2uVaiRA_o=_{G+}3KXat*Y+2!YwEfDb6Go=|J!hiEQZtMnS2b! zp8)^>000nXPqFkA+uYx%fIWx9b7X6OBdv4IB@|v7H=Y43<*h9J`^xw#?*R1