mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-13 08:56:49 +01:00
Colourable Winter Coats (#11160)
This commit is contained in:
@@ -202,6 +202,12 @@
|
||||
wintercoat["winter coat, mining"] = /obj/item/clothing/suit/storage/hooded/wintercoat/miner
|
||||
gear_tweaks += new/datum/gear_tweak/path(wintercoat)
|
||||
|
||||
/datum/gear/suit/winter_colorable
|
||||
display_name = "colorable winter coat"
|
||||
description = "A colorable winter coat for the thermally challenged."
|
||||
path = /obj/item/clothing/suit/storage/hooded/wintercoat/colorable
|
||||
flags = GEAR_HAS_NAME_SELECTION | GEAR_HAS_DESC_SELECTION | GEAR_HAS_COLOR_SELECTION
|
||||
|
||||
/datum/gear/suit/secjacketofficer
|
||||
display_name = "security jacket selection (Security Officer)"
|
||||
path = /obj/item/clothing/suit/security/officer
|
||||
|
||||
@@ -77,6 +77,7 @@
|
||||
hood.item_state = "[icon_state]_hood"
|
||||
icon_state = "[icon_state][suittoggled ? "_t" : ""]"
|
||||
item_state = icon_state
|
||||
update_icon()
|
||||
|
||||
//hoodies and the like
|
||||
|
||||
@@ -208,6 +209,7 @@
|
||||
item_state = icon_state
|
||||
if(suittoggled)
|
||||
CreateHood() //rebuild the hood with open/closed version
|
||||
update_icon()
|
||||
update_clothing_icon()
|
||||
usr.update_inv_head()
|
||||
|
||||
@@ -240,3 +242,29 @@
|
||||
Gus Maldarth was regarded as a martyr after being silenced by operatives allegedly working on the behalf of Sol."
|
||||
icon_state = "hoodie_mars"
|
||||
item_state = "hoodie_mars"
|
||||
|
||||
/obj/item/clothing/suit/storage/hooded/wintercoat/colorable
|
||||
icon_state = "coatwinter_w"
|
||||
item_state = "coatwinter_w"
|
||||
build_from_parts = TRUE
|
||||
hoodtype = /obj/item/clothing/head/winterhood/colorable
|
||||
worn_overlay = "collar_su"
|
||||
|
||||
/obj/item/clothing/suit/storage/hooded/wintercoat/colorable/Initialize()
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
/obj/item/clothing/suit/storage/hooded/wintercoat/colorable/update_icon()
|
||||
. = ..()
|
||||
cut_overlays()
|
||||
add_overlay(overlay_image(icon, "[icon_state]_collar", flags=RESET_COLOR))
|
||||
|
||||
/obj/item/clothing/head/winterhood/colorable
|
||||
icon_state = "coatwinter_w_hood"
|
||||
build_from_parts = TRUE
|
||||
worn_overlay = "collar_he"
|
||||
|
||||
/obj/item/clothing/head/winterhood/colorable/update_icon()
|
||||
. = ..()
|
||||
cut_overlays()
|
||||
add_overlay(overlay_image(icon, "[icon_state]_collar", flags=RESET_COLOR))
|
||||
@@ -912,8 +912,8 @@ There are several things that need to be remembered:
|
||||
if(head.contained_sprite)
|
||||
head.auto_adapt_species(src)
|
||||
var/state = "[UNDERSCORE_OR_NULL(head.icon_species_tag)][head.item_state][WORN_HEAD]"
|
||||
|
||||
standing = image(head.icon_override || head.icon, state)
|
||||
t_icon = head.icon
|
||||
else if(head.icon_override)
|
||||
t_icon = head.icon_override
|
||||
else if(head.sprite_sheets && head.sprite_sheets[GET_BODY_TYPE])
|
||||
@@ -930,6 +930,10 @@ There are several things that need to be remembered:
|
||||
|
||||
standing.color = head.color
|
||||
standing.appearance_flags = RESET_ALPHA
|
||||
var/image/worn_overlays = head.worn_overlays(t_icon)
|
||||
if(worn_overlays)
|
||||
standing.overlays.Add(worn_overlays)
|
||||
|
||||
var/list/ovr
|
||||
|
||||
if(head.blood_DNA)
|
||||
@@ -1034,8 +1038,8 @@ There are several things that need to be remembered:
|
||||
if(wear_suit.contained_sprite)
|
||||
wear_suit.auto_adapt_species(src)
|
||||
var/t_state = "[UNDERSCORE_OR_NULL(wear_suit.icon_species_tag)][wear_suit.item_state][WORN_SUIT]"
|
||||
|
||||
result_layer = image(wear_suit.icon_override || wear_suit.icon, t_state)
|
||||
t_icon = wear_suit.icon
|
||||
else if(wear_suit.icon_override)
|
||||
t_icon = wear_suit.icon_override
|
||||
else if(wear_suit.sprite_sheets && wear_suit.sprite_sheets[GET_BODY_TYPE])
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
author: Geeves
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- rscadd: "Added recolourable winter coats."
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 64 KiB |
Reference in New Issue
Block a user