diff --git a/code/modules/customitems/item_defines.dm b/code/modules/customitems/item_defines.dm index e49e063b59d..ebad88067f7 100644 --- a/code/modules/customitems/item_defines.dm +++ b/code/modules/customitems/item_defines.dm @@ -580,10 +580,6 @@ to_chat(user, "You can't modify [target]!") -#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, "The kit's helmet modifier has already been used!") + return + + var/obj/item/clothing/head/helmet/space/plasmaman/P = target + used |= USED_MOD_HELM + to_chat(H, "You modify the appearance of [P].") + 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, "The kit's suit modifier has already been used!") + return + + var/obj/item/clothing/under/plasmaman/P = target + used |= USED_MOD_SUIT + to_chat(H, "You modify the appearance of [P].") + 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, "You can't modify [target]!") + +/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 diff --git a/icons/mob/species/plasmaman/helmet.dmi b/icons/mob/species/plasmaman/helmet.dmi index b836d1de219..6b327384a56 100644 Binary files a/icons/mob/species/plasmaman/helmet.dmi and b/icons/mob/species/plasmaman/helmet.dmi differ diff --git a/icons/mob/species/plasmaman/uniform.dmi b/icons/mob/species/plasmaman/uniform.dmi index f28f3f7e1ff..28787d3a299 100644 Binary files a/icons/mob/species/plasmaman/uniform.dmi and b/icons/mob/species/plasmaman/uniform.dmi differ diff --git a/icons/obj/custom_items.dmi b/icons/obj/custom_items.dmi index c33db99411c..b3d640050a8 100644 Binary files a/icons/obj/custom_items.dmi and b/icons/obj/custom_items.dmi differ