mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-29 11:31:38 +00:00
244 lines
7.5 KiB
Plaintext
244 lines
7.5 KiB
Plaintext
/obj/item/lipstick
|
|
gender = PLURAL
|
|
name = "red lipstick"
|
|
desc = "A generic brand of lipstick."
|
|
icon = 'icons/obj/cosmetics.dmi'
|
|
icon_state = "lipstick"
|
|
w_class = ITEMSIZE_TINY
|
|
slot_flags = SLOT_EARS
|
|
var/colour = "red"
|
|
var/open = 0
|
|
drop_sound = 'sound/items/drop/screwdriver.ogg'
|
|
pickup_sound = 'sound/items/pickup/screwdriver.ogg'
|
|
|
|
/obj/item/lipstick/purple
|
|
name = "purple lipstick"
|
|
colour = "purple"
|
|
|
|
/obj/item/lipstick/jade
|
|
name = "jade lipstick"
|
|
colour = "jade"
|
|
|
|
/obj/item/lipstick/black
|
|
name = "black lipstick"
|
|
colour = "black"
|
|
|
|
/obj/item/lipstick/amberred
|
|
name = "amberred lipstick"
|
|
colour = "amberred"
|
|
|
|
/obj/item/lipstick/cherry
|
|
name = "cherry lipstick"
|
|
colour = "cherry"
|
|
|
|
/obj/item/lipstick/orange
|
|
name = "orange lipstick"
|
|
colour = "orange"
|
|
|
|
/obj/item/lipstick/gold
|
|
name = "gold lipstick"
|
|
colour = "gold"
|
|
|
|
/obj/item/lipstick/purple
|
|
name = "purple lipstick"
|
|
colour = "purple"
|
|
|
|
/obj/item/lipstick/deepred
|
|
name = "deepred lipstick"
|
|
colour = "deepred"
|
|
|
|
/obj/item/lipstick/pink
|
|
name = "pink lipstick"
|
|
colour = "pink"
|
|
|
|
/obj/item/lipstick/rosepink
|
|
name = "rosepink lipstick"
|
|
colour = "rosepink"
|
|
|
|
/obj/item/lipstick/nude
|
|
name = "nude lipstick"
|
|
colour = "nude"
|
|
|
|
/obj/item/lipstick/wine
|
|
name = "wine lipstick"
|
|
colour = "wine"
|
|
|
|
/obj/item/lipstick/peach
|
|
name = "peach lipstick"
|
|
colour = "peach"
|
|
|
|
/obj/item/lipstick/forestgreen
|
|
name = "forestgreen lipstick"
|
|
colour = "forestgreen"
|
|
|
|
/obj/item/lipstick/skyblue
|
|
name = "skyblue lipstick"
|
|
colour = "skyblue"
|
|
|
|
/obj/item/lipstick/teal
|
|
name = "teal lipstick"
|
|
colour = "teal"
|
|
|
|
/obj/item/lipstick/random
|
|
name = "lipstick"
|
|
|
|
/obj/item/lipstick/random/New()
|
|
colour = pick("red","purple","jade","black","amberred","cherry","orange","gold","purple","deepred","pink","rosepink","nude","wine","peach","forestgreen","skyblue","teal")
|
|
name = "[colour] lipstick"
|
|
|
|
|
|
/obj/item/lipstick/attack_self(mob/user as mob)
|
|
to_chat(user, "<span class='notice'>You twist \the [src] [open ? "closed" : "open"].</span>")
|
|
open = !open
|
|
if(open)
|
|
icon_state = "[initial(icon_state)]_[colour]"
|
|
else
|
|
icon_state = initial(icon_state)
|
|
|
|
/obj/item/lipstick/attack(mob/M as mob, mob/user as mob)
|
|
if(!open) return
|
|
|
|
if(!istype(M, /mob)) return
|
|
|
|
if(ishuman(M))
|
|
var/mob/living/carbon/human/H = M
|
|
if(H.lip_style) //if they already have lipstick on
|
|
to_chat(user, "<span class='notice'>You need to wipe off the old lipstick first!</span>")
|
|
return
|
|
if(H == user)
|
|
user.visible_message("<span class='notice'>[user] does their lips with \the [src].</span>", \
|
|
"<span class='notice'>You take a moment to apply \the [src]. Perfect!</span>")
|
|
H.lip_style = colour
|
|
H.update_body()
|
|
else
|
|
user.visible_message("<span class='warning'>[user] begins to do [H]'s lips with \the [src].</span>", \
|
|
"<span class='notice'>You begin to apply \the [src].</span>")
|
|
if(do_after(user, 20) && do_after(H, 20, 0)) //user needs to keep their active hand, H does not.
|
|
user.visible_message("<span class='notice'>[user] does [H]'s lips with \the [src].</span>", \
|
|
"<span class='notice'>You apply \the [src].</span>")
|
|
H.lip_style = colour
|
|
H.update_body()
|
|
else
|
|
to_chat(user, "<span class='notice'>Where are the lips on that?</span>")
|
|
|
|
//you can wipe off lipstick with paper! see code/modules/paperwork/paper.dm, paper/attack()
|
|
|
|
|
|
/obj/item/haircomb //sparklysheep's comb
|
|
name = "plastic comb"
|
|
desc = "A pristine comb made from flexible plastic."
|
|
w_class = ITEMSIZE_TINY
|
|
slot_flags = SLOT_EARS
|
|
icon = 'icons/obj/cosmetics.dmi'
|
|
icon_state = "comb"
|
|
item_state = "comb"
|
|
|
|
/obj/item/haircomb/random/Initialize()
|
|
. = ..()
|
|
color = get_random_colour(lower = 150)
|
|
|
|
/obj/item/haircomb/attack_self(mob/user)
|
|
user.visible_message("<span class='notice'>[user] uses [src] to comb their hair with incredible style and sophistication. What a [user.gender == FEMALE ? "lady" : "guy"].</span>")
|
|
|
|
/obj/item/razor
|
|
name = "electric razor"
|
|
desc = "The latest and greatest power razor born from the science of shaving."
|
|
icon = 'icons/obj/weapons.dmi'
|
|
icon_state = "razor"
|
|
w_class = ITEMSIZE_SMALL
|
|
|
|
/obj/item/razor/proc/shave(mob/living/carbon/human/H, location)
|
|
if(location == BP_HEAD)
|
|
H.h_style = H.species.default_h_style
|
|
else
|
|
H.f_style = H.species.default_f_style
|
|
|
|
H.update_hair()
|
|
playsound(H, 'sound/items/welder_pry.ogg', 20, 1)
|
|
|
|
|
|
/obj/item/razor/attack(mob/M, mob/user, var/target_zone)
|
|
if(!ishuman(M))
|
|
return ..()
|
|
|
|
var/mob/living/carbon/human/H = M
|
|
var/obj/item/organ/external/E = H.get_organ(target_zone)
|
|
|
|
if(!E || E.is_stump())
|
|
to_chat(user, "<span class='danger'>They are missing that limb!</span>")
|
|
return FALSE
|
|
|
|
if(!ishuman_species(H) && !istajara(H)) //you can only shave humans and tajara for obvious reasons
|
|
return FALSE
|
|
|
|
|
|
if(target_zone == BP_HEAD)
|
|
if(H.head && (H.head.body_parts_covered & HEAD))
|
|
to_chat(user, "<span class='warning'>\The [H.head] is in the way!</span>")
|
|
return FALSE
|
|
|
|
if(H.h_style == "Bald" || H.h_style == "Balding Hair" || H.h_style == "Skinhead" || H.h_style == "Tajaran Ears")
|
|
to_chat(user, "<span class='warning'>There is not enough hair left to shave!</span>")
|
|
return FALSE
|
|
|
|
if(H == user) //shaving yourself
|
|
user.visible_message("\The [user] starts to shave [user.get_pronoun("his")] head with \the [src].", \
|
|
"<span class='notice'>You start to shave your head with \the [src].</span>")
|
|
if(do_mob(user, user, 20))
|
|
user.visible_message("\The [user] shaves [user.get_pronoun("his")] head with \the [src].", \
|
|
"<span class='notice'>You finish shaving with \the [src].</span>")
|
|
shave(H, target_zone)
|
|
|
|
return TRUE
|
|
|
|
else
|
|
user.visible_message("<span class='warning'>\The [user] tries to shave \the [H]'s head with \the [src]!</span>", \
|
|
"<span class='notice'>You start shaving [H]'s head.</span>")
|
|
if(do_mob(user, H, 20))
|
|
user.visible_message("<span class='warning'>\The [user] shaves \the [H]'s head bald with \the [src]!</span>", \
|
|
"<span class='notice'>You shave \the [H]'s head bald.</span>")
|
|
shave(H, target_zone)
|
|
|
|
return TRUE
|
|
|
|
else if(target_zone == BP_MOUTH)
|
|
|
|
if(H.head && (H.head.body_parts_covered & FACE))
|
|
to_chat(user, "<span class='warning'>\The [H.head] is in the way!</span>")
|
|
return FALSE
|
|
|
|
if(H.wear_mask && (H.wear_mask.body_parts_covered & FACE))
|
|
to_chat(user, "<span class='warning'>\The [H.wear_mask] is in the way!</span>")
|
|
return FALSE
|
|
|
|
if(H.f_style == "Shaved")
|
|
to_chat(user, "<span class='warning'>There is not enough facial hair left to shave!</span>")
|
|
return FALSE
|
|
|
|
if(H == user) //shaving yourself
|
|
user.visible_message("<span class='warning'>\The [user] starts to shave [user.get_pronoun("his")] facial hair with \the [src].</span>", \
|
|
"<span class='notice'>You take a moment to shave your facial hair with \the [src].</span>")
|
|
if(do_mob(user, user, 20))
|
|
user.visible_message("<span class='warning'>\The [user] shaves [user.get_pronoun("his")] facial hair clean with \the [src].</span>", \
|
|
"<span class='notice'>You finish shaving with \the [src].</span>")
|
|
shave(H, target_zone)
|
|
|
|
return TRUE
|
|
|
|
else
|
|
user.visible_message("<span class='warning'>\The [user] tries to shave \the [H]'s facial hair with \the [src].</span>", \
|
|
"<span class='notice'>You start shaving [H]'s facial hair.</span>")
|
|
if(do_mob(user, H, 20))
|
|
user.visible_message("<span class='warning'>\The [user] shaves off \the [H]'s facial hair with \the [src].</span>", \
|
|
"<span class='notice'>You shave [H]'s facial hair clean off.</span>")
|
|
shave(H, target_zone)
|
|
|
|
return TRUE
|
|
|
|
|
|
else
|
|
to_chat(user, "<span class='warning'>You need to target the mouth or head to shave \the [H]!</span>")
|
|
return
|
|
|
|
|