This commit is contained in:
SabreML
2021-06-17 10:18:17 +01:00
committed by GitHub
parent b7bef4f2e8
commit 5de0ebddaf
4 changed files with 54 additions and 4 deletions
+54 -4
View File
@@ -580,10 +580,6 @@
to_chat(user, "<span class='warning'>You can't modify [target]!</span>")
#undef USED_MOD_HELM
#undef USED_MOD_SUIT
//////////////////////////////////
//////////// Clothing ////////////
//////////////////////////////////
@@ -1491,6 +1487,57 @@
displays_id = FALSE
/obj/item/fluff/lighty_plasman_modkit // LightFire53: Ikelos
name = "plasmaman suit modkit"
desc = "A kit containing nanites that are able to modify the look of a plasmaman suit and helmet without exposing the wearer to hostile environments."
icon_state = "modkit"
w_class = WEIGHT_CLASS_SMALL
/obj/item/fluff/lighty_plasman_modkit/afterattack(atom/target, mob/user, proximity, params)
if(!proximity || !ishuman(user) || user.incapacitated() || !isitem(target))
return
var/mob/living/carbon/human/H = user
if(istype(target, /obj/item/clothing/head/helmet/space/plasmaman))
if(used & USED_MOD_HELM)
to_chat(H, "<span class='warning'>The kit's helmet modifier has already been used!</span>")
return
var/obj/item/clothing/head/helmet/space/plasmaman/P = target
used |= USED_MOD_HELM
to_chat(H, "<span class='notice'>You modify the appearance of [P].</span>")
playsound(src, 'sound/effects/spray.ogg', 5, TRUE, 5)
var/obj/item/clothing/head/helmet/space/plasmaman/lf53_fluff/F = new(P.loc)
if(P == H.head)
H.unEquip(P, TRUE, TRUE)
H.equip_to_slot(F, slot_head, TRUE)
H.update_inv_head()
qdel(P)
else if(istype(target, /obj/item/clothing/under/plasmaman))
if(used & USED_MOD_SUIT)
to_chat(user, "<span class='warning'>The kit's suit modifier has already been used!</span>")
return
var/obj/item/clothing/under/plasmaman/P = target
used |= USED_MOD_SUIT
to_chat(H, "<span class='notice'>You modify the appearance of [P].</span>")
playsound(src, 'sound/effects/spray.ogg', 5, TRUE, 5)
P.icon_state = "ikelos_envirosuit"
P.item_color = "ikelos_envirosuit"
P.icon = 'icons/obj/custom_items.dmi'
if(P == H.w_uniform)
H.update_inv_w_uniform()
else
to_chat(user, "<span class='warning'>You can't modify [target]!</span>")
/obj/item/clothing/head/helmet/space/plasmaman/lf53_fluff // LightFire53: Ikelos
icon_state = "ikelos_envirohelm" // New item needed because `initial(icon_state)` is used.
icon = 'icons/obj/custom_items.dmi'
/obj/item/fluff/decemviri_spacepod_kit //Decemviri: Sylus Cain
name = "Spacepod mod kit"
desc = "a kit on tools and a blueprint detailing how to reconfigure a spacepod"
@@ -1664,3 +1711,6 @@
item_color = "kikeridress"
body_parts_covered = UPPER_TORSO|LOWER_TORSO
species_restricted = list("Vox")
#undef USED_MOD_HELM
#undef USED_MOD_SUIT