mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 11:05:03 +01:00
Reworks Plasmamen
This commit is contained in:
@@ -10,6 +10,9 @@
|
||||
////////// Usable Items //////////
|
||||
//////////////////////////////////
|
||||
|
||||
#define USED_MOD_HELM 1
|
||||
#define USED_MOD_SUIT 2
|
||||
|
||||
/obj/item/fluff
|
||||
var/used = 0
|
||||
|
||||
@@ -401,118 +404,6 @@
|
||||
return
|
||||
to_chat(user, "<span class='warning'>You can't modify [target]!</span>")
|
||||
|
||||
#define USED_MOD_HELM 1
|
||||
#define USED_MOD_SUIT 2
|
||||
|
||||
/obj/item/fluff/shadey_plasman_modkit
|
||||
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
|
||||
force = 0
|
||||
throwforce = 0
|
||||
|
||||
/obj/item/fluff/shadey_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
|
||||
to_chat(H, "<span class='notice'>You modify the appearance of [target].</span>")
|
||||
used |= USED_MOD_HELM
|
||||
|
||||
var/obj/item/clothing/head/helmet/space/eva/plasmaman/P = target
|
||||
P.name = "plasma containment helmet"
|
||||
P.desc = "A purpose-built containment helmet designed to keep plasma in, and everything else out."
|
||||
P.icon_state = "plasmaman_halo_helmet[P.on]"
|
||||
P.base_state = "plasmaman_halo_helmet"
|
||||
|
||||
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
|
||||
to_chat(H, "<span class='notice'>You modify the appearance of [target].</span>")
|
||||
used |= USED_MOD_SUIT
|
||||
|
||||
var/obj/item/clothing/suit/space/eva/plasmaman/P = target
|
||||
P.name = "plasma containment suit"
|
||||
P.desc = "A feminine containment suit designed to keep plasma in, and everything else out. It's even got an overskirt."
|
||||
P.icon_state = "plasmaman_halo"
|
||||
|
||||
if(P == H.wear_suit)
|
||||
H.update_inv_wear_suit()
|
||||
return
|
||||
to_chat(user, "<span class='warning'>You can't modify [target]!</span>")
|
||||
|
||||
/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 = 2
|
||||
force = 0
|
||||
throwforce = 0
|
||||
var/picked_color = null
|
||||
var/list/helmets = list(
|
||||
"Blue" = "plasmaman_ikelosdefault_helmet",
|
||||
"Gold" = "plasmaman_ikelosgold_helmet",
|
||||
"Red" = "plasmaman_ikelossecurity_helmet")
|
||||
var/list/suits = list(
|
||||
"Blue" = "plasmaman_ikelosdefault",
|
||||
"Gold" = "plasmaman_ikelosgold",
|
||||
"Red" = "plasmaman_ikelossecurity")
|
||||
|
||||
/obj/item/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 helmets
|
||||
var/obj/item/clothing/head/helmet/space/eva/plasmaman/P = target
|
||||
|
||||
if(!picked_color)
|
||||
return
|
||||
P.icon_state = helmets[picked_color] + "[P.on]"
|
||||
P.base_state = helmets[picked_color]
|
||||
|
||||
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 suits
|
||||
var/obj/item/clothing/suit/space/eva/plasmaman/P = target
|
||||
|
||||
if(!picked_color)
|
||||
return
|
||||
P.icon_state = suits[picked_color]
|
||||
|
||||
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>")
|
||||
|
||||
|
||||
/obj/item/fluff/merchant_sallet_modkit //Travelling Merchant: Trav Noble. This is what they spawn in with
|
||||
name = "SG Helmet modkit"
|
||||
desc = "A modkit that can make most helmets look like a Shellguard Helmet."
|
||||
|
||||
Reference in New Issue
Block a user