mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-29 07:36:58 +01:00
200 lines
7.5 KiB
Plaintext
200 lines
7.5 KiB
Plaintext
/obj/item/lipstick
|
|
gender = PLURAL
|
|
name = "red lipstick"
|
|
desc = "A generic brand of lipstick."
|
|
icon = 'icons/obj/items_and_weapons.dmi'
|
|
icon_state = "lipstick"
|
|
w_class = WEIGHT_CLASS_TINY
|
|
var/colour = "red"
|
|
var/open = FALSE
|
|
/// A trait that's applied while someone has this lipstick applied, and is removed when the lipstick is removed
|
|
var/lipstick_trait
|
|
|
|
/obj/item/lipstick/purple
|
|
name = "purple lipstick"
|
|
colour = "purple"
|
|
|
|
/obj/item/lipstick/jade
|
|
//It's still called Jade, but theres no HTML color for jade, so we use lime.
|
|
name = "jade lipstick"
|
|
colour = "lime"
|
|
|
|
/obj/item/lipstick/black
|
|
name = "black lipstick"
|
|
colour = "black"
|
|
|
|
/obj/item/lipstick/black/death
|
|
name = "Kiss of Death"
|
|
lipstick_trait = TRAIT_KISS_OF_DEATH
|
|
|
|
/obj/item/lipstick/random
|
|
name = "lipstick"
|
|
icon_state = "random_lipstick"
|
|
|
|
/obj/item/lipstick/random/New()
|
|
..()
|
|
icon_state = "lipstick"
|
|
colour = pick("red","purple","lime","black","green","blue","white")
|
|
name = "[colour] lipstick"
|
|
|
|
/obj/item/lipstick/attack_self(mob/user)
|
|
cut_overlays()
|
|
to_chat(user, span_notice("You twist \the [src] [open ? "closed" : "open"]."))
|
|
open = !open
|
|
if(open)
|
|
var/mutable_appearance/colored_overlay = mutable_appearance(icon, "lipstick_uncap_color")
|
|
colored_overlay.color = colour
|
|
icon_state = "lipstick_uncap"
|
|
add_overlay(colored_overlay)
|
|
else
|
|
icon_state = "lipstick"
|
|
|
|
/obj/item/lipstick/attack(mob/M, mob/user)
|
|
if(!open || !ismob(M))
|
|
return
|
|
|
|
if(!ishuman(M))
|
|
to_chat(user, span_warning("Where are the lips on that?"))
|
|
return
|
|
|
|
var/mob/living/carbon/human/target = M
|
|
if(target.is_mouth_covered())
|
|
to_chat(user, span_warning("Remove [ target == user ? "your" : "[target.p_their()]" ] mask!"))
|
|
return
|
|
if(target.lip_style) //if they already have lipstick on
|
|
to_chat(user, span_warning("You need to wipe off the old lipstick first!"))
|
|
return
|
|
|
|
if(target == user)
|
|
user.visible_message(span_notice("[user] does [user.p_their()] lips with \the [src]."), \
|
|
span_notice("You take a moment to apply \the [src]. Perfect!"))
|
|
target.update_lips("lipstick", colour, lipstick_trait)
|
|
return
|
|
|
|
user.visible_message(span_warning("[user] begins to do [target]'s lips with \the [src]."), \
|
|
span_notice("You begin to apply \the [src] on [target]'s lips..."))
|
|
if(!do_after(user, 2 SECONDS, target = target))
|
|
return
|
|
user.visible_message(span_notice("[user] does [target]'s lips with \the [src]."), \
|
|
span_notice("You apply \the [src] on [target]'s lips."))
|
|
target.update_lips("lipstick", colour, lipstick_trait)
|
|
|
|
//you can wipe off lipstick with paper!
|
|
/obj/item/paper/attack(mob/M, mob/user)
|
|
if(user.zone_selected != BODY_ZONE_PRECISE_MOUTH || !ishuman(M))
|
|
return ..()
|
|
|
|
var/mob/living/carbon/human/target = M
|
|
if(target == user)
|
|
to_chat(user, span_notice("You wipe off the lipstick with [src]."))
|
|
target.clean_lips()
|
|
return
|
|
|
|
user.visible_message(span_warning("[user] begins to wipe [target]'s lipstick off with \the [src]."), \
|
|
span_notice("You begin to wipe off [target]'s lipstick..."))
|
|
if(!do_after(user, 10, target = target))
|
|
return
|
|
user.visible_message(span_notice("[user] wipes [target]'s lipstick off with \the [src]."), \
|
|
span_notice("You wipe off [target]'s lipstick."))
|
|
target.clean_lips()
|
|
|
|
/obj/item/razor
|
|
name = "electric razor"
|
|
desc = "The latest and greatest power razor born from the science of shaving."
|
|
icon = 'icons/obj/items_and_weapons.dmi'
|
|
icon_state = "razor"
|
|
flags_1 = CONDUCT_1
|
|
w_class = WEIGHT_CLASS_TINY
|
|
|
|
/obj/item/razor/suicide_act(mob/living/carbon/user)
|
|
user.visible_message("<span class='suicide'>[user] begins shaving [user.p_them()]self without the razor guard! It looks like [user.p_theyre()] trying to commit suicide!</span>")
|
|
shave(user, BODY_ZONE_PRECISE_MOUTH)
|
|
shave(user, BODY_ZONE_HEAD)//doesnt need to be BODY_ZONE_HEAD specifically, but whatever
|
|
return BRUTELOSS
|
|
|
|
/obj/item/razor/proc/shave(mob/living/carbon/human/H, location = BODY_ZONE_PRECISE_MOUTH)
|
|
if(location == BODY_ZONE_PRECISE_MOUTH)
|
|
H.facial_hair_style = "Shaved"
|
|
else
|
|
H.hair_style = "Skinhead"
|
|
|
|
H.update_hair()
|
|
playsound(loc, 'sound/items/welder2.ogg', 20, 1)
|
|
|
|
|
|
/obj/item/razor/attack(mob/M, mob/user)
|
|
if(ishuman(M) && extended == 1 && user.a_intent != INTENT_HARM)
|
|
var/mob/living/carbon/human/H = M
|
|
var/location = user.zone_selected
|
|
var/mirror = FALSE
|
|
if(HAS_TRAIT(H, TRAIT_SELF_AWARE) || locate(/obj/structure/mirror) in range(1, H))
|
|
mirror = TRUE
|
|
if((location in list(BODY_ZONE_PRECISE_EYES, BODY_ZONE_PRECISE_MOUTH, BODY_ZONE_HEAD)) && !H.get_bodypart(BODY_ZONE_HEAD))
|
|
to_chat(user, "<span class='warning'>[H] doesn't have a head!</span>")
|
|
return
|
|
if(location == BODY_ZONE_PRECISE_MOUTH)
|
|
if(user.a_intent == INTENT_HELP)
|
|
INVOKE_ASYNC(src, PROC_REF(new_facial_hairstyle), H, user, mirror)
|
|
return
|
|
else
|
|
if(!(FACEHAIR in H.dna.species.species_traits))
|
|
to_chat(user, "<span class='warning'>There is no facial hair to shave!</span>")
|
|
return
|
|
if(!get_location_accessible(H, location))
|
|
to_chat(user, "<span class='warning'>The mask is in the way!</span>")
|
|
return
|
|
if(H.facial_hair_style == "Shaved")
|
|
to_chat(user, "<span class='warning'>Already clean-shaven!</span>")
|
|
return
|
|
|
|
if(H == user) //shaving yourself
|
|
user.visible_message("[user] starts to shave [user.p_their()] facial hair with [src].", \
|
|
"<span class='notice'>You take a moment to shave your facial hair with [src]...</span>")
|
|
if(do_after(user, 50, target = H))
|
|
user.visible_message("[user] shaves [user.p_their()] facial hair clean with [src].", \
|
|
"<span class='notice'>You finish shaving with [src]. Fast and clean!</span>")
|
|
shave(H, location)
|
|
else
|
|
user.visible_message("<span class='warning'>[user] tries to shave [H]'s facial hair with [src].</span>", \
|
|
"<span class='notice'>You start shaving [H]'s facial hair...</span>")
|
|
if(do_after(user, 50, target = H))
|
|
user.visible_message("<span class='warning'>[user] shaves off [H]'s facial hair with [src].</span>", \
|
|
"<span class='notice'>You shave [H]'s facial hair clean off.</span>")
|
|
shave(H, location)
|
|
|
|
else if(location == BODY_ZONE_HEAD)
|
|
if(user.a_intent == INTENT_HELP)
|
|
INVOKE_ASYNC(src, PROC_REF(new_hairstyle), H, user, mirror)
|
|
return
|
|
else
|
|
if(!(HAIR in H.dna.species.species_traits))
|
|
to_chat(user, "<span class='warning'>There is no hair to shave!</span>")
|
|
return
|
|
if(!get_location_accessible(H, location))
|
|
to_chat(user, "<span class='warning'>The headgear is in the way!</span>")
|
|
return
|
|
if(H.hair_style == "Bald" || H.hair_style == "Balding Hair" || H.hair_style == "Skinhead")
|
|
to_chat(user, "<span class='warning'>There is not enough hair left to shave!</span>")
|
|
return
|
|
|
|
if(H == user) //shaving yourself
|
|
user.visible_message("[user] starts to shave [user.p_their()] head with [src].", \
|
|
"<span class='notice'>You start to shave your head with [src]...</span>")
|
|
if(do_after(user, 5, target = H))
|
|
user.visible_message("[user] shaves [user.p_their()] head with [src].", \
|
|
"<span class='notice'>You finish shaving with [src].</span>")
|
|
shave(H, location)
|
|
else
|
|
var/turf/H_loc = H.loc
|
|
user.visible_message("<span class='warning'>[user] tries to shave [H]'s head with [src]!</span>", \
|
|
"<span class='notice'>You start shaving [H]'s head...</span>")
|
|
if(do_after(user, 50, target = H))
|
|
if(H_loc == H.loc)
|
|
user.visible_message("<span class='warning'>[user] shaves [H]'s head bald with [src]!</span>", \
|
|
"<span class='notice'>You shave [H]'s head bald.</span>")
|
|
shave(H, location)
|
|
else
|
|
..()
|
|
else
|
|
..()
|