Merge pull request #15659 from timothyteakettle/polychromic-tg-maid-!-!-
polychromic maid outfit + polychromic accessory support
@@ -360,3 +360,12 @@
|
||||
desc = "Thin, pretty gloves intended for use in sexy feminine attire. A tag on the hem claims they pair great with black stockings."
|
||||
icon_state = "eveningblack"
|
||||
item_state = "eveningblack"
|
||||
|
||||
/obj/item/clothing/gloves/polymaid
|
||||
name = "polychromic maid gloves"
|
||||
desc = "Colourable maid gloves!"
|
||||
icon_state = "maid_arms"
|
||||
|
||||
/obj/item/clothing/gloves/polymaid/ComponentInitialize()
|
||||
. = ..()
|
||||
AddElement(/datum/element/polychromic, list("#333333", "#FFFFFF"), 2)
|
||||
|
||||
@@ -477,6 +477,15 @@
|
||||
item_state = "maid"
|
||||
dynamic_hair_suffix = ""
|
||||
|
||||
/obj/item/clothing/head/maid/polychromic
|
||||
name = "polychromic maid headband"
|
||||
icon_state = "polymaid"
|
||||
item_state = "polymaid"
|
||||
|
||||
/obj/item/clothing/head/maid/polychromic/ComponentInitialize()
|
||||
. = ..()
|
||||
AddElement(/datum/element/polychromic, list("#333333", "#FFFFFF"), 2)
|
||||
|
||||
/obj/item/clothing/head/widered
|
||||
name = "Wide red hat"
|
||||
desc = "It is both wide, and red. Stylish!"
|
||||
|
||||
@@ -259,6 +259,15 @@
|
||||
name = "Collar Key"
|
||||
desc = "A key for a tiny lock on a collar or bag."
|
||||
|
||||
/obj/item/clothing/neck/maid
|
||||
name = "polychromic maid collar"
|
||||
desc = "A collar that goes with the polychromic maid outfit."
|
||||
icon_state = "maid_neck"
|
||||
|
||||
/obj/item/clothing/neck/maid/ComponentInitialize()
|
||||
. = ..()
|
||||
AddElement(/datum/element/polychromic, list("#333333", "#FFFFFF"), 2)
|
||||
|
||||
//////////////
|
||||
//DOPE BLING//
|
||||
//////////////
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
if(istype(U) && U.attached_accessory)
|
||||
var/obj/item/clothing/accessory/A = U.attached_accessory
|
||||
if(A.above_suit)
|
||||
. += U.accessory_overlay
|
||||
. += U.accessory_overlays
|
||||
|
||||
/obj/item/clothing/suit/update_clothes_damaged_state()
|
||||
..()
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
var/alt_covers_chest = FALSE // for adjusted/rolled-down jumpsuits, FALSE = exposes chest and arms, TRUE = exposes arms only
|
||||
var/dummy_thick = FALSE // is able to hold accessories on its item
|
||||
var/obj/item/clothing/accessory/attached_accessory
|
||||
var/mutable_appearance/accessory_overlay
|
||||
var/list/accessory_overlays
|
||||
|
||||
/obj/item/clothing/under/worn_overlays(isinhands = FALSE, icon_file, used_state, style_flags = NONE)
|
||||
. = ..()
|
||||
@@ -30,8 +30,8 @@
|
||||
. += mutable_appearance('icons/effects/item_damage.dmi', "damageduniform")
|
||||
if(blood_DNA)
|
||||
. += mutable_appearance('icons/effects/blood.dmi', "uniformblood", color = blood_DNA_to_color(), blend_mode = blood_DNA_to_blend())
|
||||
if(accessory_overlay)
|
||||
. += accessory_overlay
|
||||
if(length(accessory_overlays))
|
||||
. += accessory_overlays
|
||||
|
||||
/obj/item/clothing/under/attackby(obj/item/I, mob/user, params)
|
||||
if((sensordamage || (has_sensor < HAS_SENSORS && has_sensor != NO_SENSORS)) && istype(I, /obj/item/stack/cable_coil))
|
||||
@@ -154,9 +154,15 @@
|
||||
if((flags_inv & HIDEACCESSORY) || (A.flags_inv & HIDEACCESSORY))
|
||||
return TRUE
|
||||
|
||||
accessory_overlay = mutable_appearance('icons/mob/clothing/accessories.dmi', attached_accessory.icon_state)
|
||||
var/datum/element/polychromic/polychromic = LAZYACCESS(attached_accessory.comp_lookup, "item_worn_overlays")
|
||||
if(!polychromic)
|
||||
var/mutable_appearance/accessory_overlay = mutable_appearance('icons/mob/clothing/accessories.dmi', attached_accessory.icon_state)
|
||||
accessory_overlay.alpha = attached_accessory.alpha
|
||||
accessory_overlay.color = attached_accessory.color
|
||||
accessory_overlays = list(accessory_overlay)
|
||||
else
|
||||
accessory_overlays = list()
|
||||
polychromic.apply_worn_overlays(I, FALSE, 'icons/mob/clothing/accessories.dmi', I.item_state || I.icon_state, NONE, accessory_overlays)
|
||||
|
||||
if(ishuman(loc))
|
||||
var/mob/living/carbon/human/H = loc
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
plane = initial(plane)
|
||||
U.cut_overlays()
|
||||
U.attached_accessory = null
|
||||
U.accessory_overlay = null
|
||||
U.accessory_overlays = null
|
||||
|
||||
/obj/item/clothing/accessory/proc/on_uniform_equip(obj/item/clothing/under/U, user)
|
||||
return
|
||||
@@ -255,6 +255,15 @@
|
||||
item_state = "maidapron"
|
||||
minimize_when_attached = FALSE
|
||||
|
||||
/obj/item/clothing/accessory/maidapron/polychromic
|
||||
name = "polychromic maid apron"
|
||||
icon_state = "polymaidapron"
|
||||
item_state = "polymaidapron"
|
||||
|
||||
/obj/item/clothing/accessory/maidapron/polychromic/ComponentInitialize()
|
||||
. = ..()
|
||||
AddElement(/datum/element/polychromic, list("#333333", "#FFFFFF"), 2)
|
||||
|
||||
/obj/item/clothing/accessory/sleevecrop
|
||||
name = "one sleeved crop top"
|
||||
desc = "Off the shoulder crop top, for those nights out partying."
|
||||
|
||||
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 486 KiB After Width: | Height: | Size: 487 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 141 KiB |
@@ -175,3 +175,9 @@
|
||||
/datum/gear/backpack/necklace//this is here because loadout doesn't support proper accessories
|
||||
name = "A renameable necklace"
|
||||
path = /obj/item/clothing/accessory/necklace
|
||||
|
||||
/datum/gear/backpack/polymaidapron //this is ALSO here because loadout doesn't support proper accessories
|
||||
name = "Polychromic maid apron"
|
||||
path = /obj/item/clothing/accessory/maidapron/polychromic
|
||||
loadout_flags = LOADOUT_CAN_NAME | LOADOUT_CAN_DESCRIPTION | LOADOUT_CAN_COLOR_POLYCHROMIC
|
||||
loadout_initial_colors = list("#333333", "#FFFFFF")
|
||||
|
||||
@@ -14,6 +14,12 @@
|
||||
name = "Midnight gloves"
|
||||
path = /obj/item/clothing/gloves/evening/black
|
||||
|
||||
/datum/gear/gloves/maidpoly // WHAT DO YOU EVEN CALL THEM
|
||||
name = "Polychromic maid gloves"
|
||||
path = /obj/item/clothing/gloves/polymaid
|
||||
loadout_flags = LOADOUT_CAN_NAME | LOADOUT_CAN_DESCRIPTION | LOADOUT_CAN_COLOR_POLYCHROMIC
|
||||
loadout_initial_colors = list("#333333", "#FFFFFF")
|
||||
|
||||
/datum/gear/gloves/goldring
|
||||
name = "A gold ring"
|
||||
path = /obj/item/clothing/gloves/ring
|
||||
|
||||
@@ -58,6 +58,12 @@
|
||||
name = "Maid headband"
|
||||
path= /obj/item/clothing/head/maid
|
||||
|
||||
/datum/gear/head/maidband/poly
|
||||
name = "Polychromic maid headband"
|
||||
path= /obj/item/clothing/head/maid/polychromic
|
||||
loadout_flags = LOADOUT_CAN_NAME | LOADOUT_CAN_DESCRIPTION | LOADOUT_CAN_COLOR_POLYCHROMIC
|
||||
loadout_initial_colors = list("#333333", "#FFFFFF")
|
||||
|
||||
/datum/gear/head/flakhelm
|
||||
name = "Flak Helmet"
|
||||
path = /obj/item/clothing/head/flakhelm
|
||||
|
||||
@@ -106,3 +106,9 @@
|
||||
path = /obj/item/clothing/neck/cloak/cancloak/polychromic
|
||||
loadout_flags = LOADOUT_CAN_NAME | LOADOUT_CAN_DESCRIPTION | LOADOUT_CAN_COLOR_POLYCHROMIC
|
||||
loadout_initial_colors = list("#585858", "#373737", "#BEBEBE")
|
||||
|
||||
/datum/gear/neck/maid
|
||||
name = "Polychromatic Maid Collar"
|
||||
path = /obj/item/clothing/neck/maid
|
||||
loadout_flags = LOADOUT_CAN_NAME | LOADOUT_CAN_DESCRIPTION | LOADOUT_CAN_COLOR_POLYCHROMIC
|
||||
loadout_initial_colors = list("#333333", "#FFFFFF")
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
name = "Polychromic maid costume"
|
||||
path = /obj/item/clothing/under/rank/civilian/janitor/maid/polychromic
|
||||
loadout_flags = LOADOUT_CAN_NAME | LOADOUT_CAN_DESCRIPTION | LOADOUT_CAN_COLOR_POLYCHROMIC
|
||||
loadout_initial_colors = list("#FFFFFF", "#000000")
|
||||
loadout_initial_colors = list("#333333", "#FFFFFF")
|
||||
|
||||
/datum/gear/uniform/mailmanuniform
|
||||
name = "Mailman's jumpsuit"
|
||||
|
||||