This commit is contained in:
FlattestGuitar
2017-05-05 14:42:44 +02:00
parent dcd340eddc
commit 8461b5375e
7 changed files with 79 additions and 0 deletions
+79
View File
@@ -360,6 +360,75 @@
return
to_chat(user, "<span class='warning'>You can't modify [target]!</span>")
/obj/item/device/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 = 2
force = 0
throwforce = 0
var/list/options = list("Blue", "Gold", "Red")
var/picked_color = null
/obj/item/device/fluff/lighty_plasman_modkit/afterattack(atom/target, mob/user, proximity)
if(!proximity || !ishuman(user) || user.incapacitated())
return
var/mob/living/carbon/human/H = user
if(istype(target, /obj/item/clothing/head/helmet/space/eva/plasmaman))
if(used & USED_MOD_HELM)
to_chat(H, "<span class='notice'>The kit's helmet modifier has already been used.</span>")
return
picked_color = input(H, "Which color would you like to paint [target]?", "Recolor") as null|anything in options
var/obj/item/clothing/head/helmet/space/eva/plasmaman/P = target
switch(picked_color)
if("Blue")
P.icon_state = "plasmaman_ikelosdefault_helmet[P.on]"
P.base_state = "plasmaman_ikelosdefault_helmet"
if("Gold")
P.icon_state = "plasmaman_ikelosgold_helmet[P.on]"
P.base_state = "plasmaman_ikelosgold_helmet"
if("Red")
P.icon_state = "plasmaman_ikelossecurity_helmet[P.on]"
P.base_state = "plasmaman_ikelossecurity_helmet"
else
return
to_chat(H, "<span class='notice'>You modify the appearance of [target].</span>")
P.icon = 'icons/obj/custom_items.dmi'
used |= USED_MOD_HELM
if(P == H.head)
H.update_inv_head()
return
if(istype(target, /obj/item/clothing/suit/space/eva/plasmaman))
if(used & USED_MOD_SUIT)
to_chat(user, "<span class='notice'>The kit's suit modifier has already been used.</span>")
return
picked_color = input(H, "Which color would you like to paint [target]?", "Recolor") as null|anything in options
var/obj/item/clothing/suit/space/eva/plasmaman/P = target
switch(picked_color)
if("Blue")
P.icon_state = "plasmaman_ikelosdefault"
if("Gold")
P.icon_state = "plasmaman_ikelosgold"
if("Red")
P.icon_state = "plasmaman_ikelossecurity"
else
return
to_chat(H, "<span class='notice'>You modify the appearance of [target].</span>")
P.icon = 'icons/obj/custom_items.dmi'
used |= USED_MOD_SUIT
if(P == H.wear_suit)
H.update_inv_wear_suit()
return
to_chat(user, "<span class='warning'>You can't modify [target]!</span>")
#undef USED_MOD_HELM
#undef USED_MOD_SUIT
@@ -560,6 +629,16 @@
item_state = "castile_dress"
item_color = "castile_dress"
/obj/item/clothing/under/fluff/xantholne //Xantholne: Meex Zwichsnicrur
name = "Stripped Shorts and Shirt"
desc = "A silky pair of dark shorts with a matching shirt. The shirt's collar has a tag on the inside that reads 'Meexy' on it."
icon = 'icons/obj/custom_items.dmi'
lefthand_file = 'icons/mob/inhands/fluff_lefthand.dmi'
righthand_file = 'icons/mob/inhands/fluff_righthand.dmi'
icon_state = "xantholne"
item_state = "xantholne"
item_color = "xantholne"
/obj/item/clothing/under/fluff/elishirt // FlattestGuitar9: Eli Randolph
name = "casual dress shirt"
desc = "A soft, white dress shirt paired up with black suit pants. The set looks comfortable."