Merge pull request #15659 from timothyteakettle/polychromic-tg-maid-!-!-

polychromic maid outfit + polychromic accessory support
This commit is contained in:
Lin
2022-06-07 17:25:25 +00:00
committed by GitHub
19 changed files with 75 additions and 9 deletions

View File

@@ -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)

View File

@@ -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!"

View File

@@ -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//
//////////////

View File

@@ -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()
..()

View File

@@ -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)
accessory_overlay.alpha = attached_accessory.alpha
accessory_overlay.color = attached_accessory.color
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

View File

@@ -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."