Merge pull request #10126 from dwinters99/dancloak

PastelPrinceDan fluff item
This commit is contained in:
Novacat
2021-04-10 19:36:34 -04:00
committed by GitHub
4 changed files with 49 additions and 0 deletions
@@ -735,6 +735,12 @@
ckeywhitelist = list("pimientopyro")
character_name = list("Scylla Casmus")
/datum/gear/fluff/kiyoshi_cloak
path = /obj/item/clothing/accessory/poncho/fluff/cloakglowing
display_name = "glowing cloak"
ckeywhitelist = list("pastelprincedan")
character_name = list("Kiyoshi Maki", "Masumi Maki")
// Q CKEYS
// R CKEYS
@@ -2287,4 +2287,47 @@ Departamental Swimsuits, for general use
body_parts_covered = UPPER_TORSO|LOWER_TORSO|FEET|ARMS|HANDS
//PastelPrinceDan: Kiyoshi Maki
/obj/item/clothing/accessory/poncho/fluff/cloakglowing
name = "glowing cloak"
desc = "A fancy cloak with a RGB LED color strip along the trim, cycling through the colors of the rainbow."
icon = 'icons/vore/custom_clothes_vr.dmi'
icon_state = "rgb"
item_state = "rgb"
overlay_state = "rgb"
icon_override = 'icons/vore/custom_onmob_vr.dmi'
var/is_dark = FALSE
/obj/item/clothing/accessory/poncho/fluff/cloakglowing/equipped()
..()
var/mob/living/carbon/human/H = loc
if(istype(H) && H.wear_suit == src)
icon_override = 'icons/vore/custom_onmob_vr.dmi'
update_clothing_icon()
/obj/item/clothing/accessory/poncho/fluff/cloakglowing/dropped()
icon_override = 'icons/vore/custom_onmob_vr.dmi'
/obj/item/clothing/accessory/poncho/fluff/cloakglowing/proc/colorswap(mob/user)
if(user.canmove && !user.stat)
src.is_dark = !src.is_dark
if (src.is_dark)
icon_state = "rgbd"
item_state = "rgbd"
overlay_state = "rgbd"
to_chat(user, "The polychromic plates in your cloak activate, turning it black.")
else
icon_state = "rgb"
item_state = "rgb"
overlay_state = "rgb"
to_chat(user, "The polychromic plates in your cloak activate, turning it white.")
has_suit.update_clothing_icon()
/obj/item/clothing/accessory/poncho/fluff/cloakglowing/verb/color_verb()
set name = "Swap color"
set category = "Object"
set src in usr
if(!istype(usr, /mob/living)) return
if(usr.stat) return
colorswap(usr)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 215 KiB

After

Width:  |  Height:  |  Size: 216 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 23 KiB