mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-14 10:53:42 +00:00
56 lines
1.9 KiB
Plaintext
56 lines
1.9 KiB
Plaintext
/obj/structure/dresser
|
|
name = "dresser"
|
|
desc = "A nicely-crafted wooden dresser. It's filled with lots of undies."
|
|
icon = 'icons/obj/stationobjs.dmi'
|
|
icon_state = "dresser"
|
|
density = TRUE
|
|
anchored = TRUE
|
|
|
|
/obj/structure/dresser/attackby(obj/item/I, mob/user, params)
|
|
if(istype(I, /obj/item/wrench))
|
|
to_chat(user, "<span class='notice'>You begin to [anchored ? "unwrench" : "wrench"] [src].</span>")
|
|
if(I.use_tool(src, user, 20, volume=50))
|
|
to_chat(user, "<span class='notice'>You successfully [anchored ? "unwrench" : "wrench"] [src].</span>")
|
|
anchored = !anchored
|
|
else
|
|
return ..()
|
|
|
|
/obj/structure/dresser/deconstruct(disassembled = TRUE)
|
|
new /obj/item/stack/sheet/mineral/wood(drop_location(), 10)
|
|
qdel(src)
|
|
|
|
/obj/structure/dresser/attack_hand(mob/user)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
if(!Adjacent(user))//no tele-grooming
|
|
return
|
|
if(ishuman(user))
|
|
var/mob/living/carbon/human/H = user
|
|
|
|
if(H.dna && H.dna.species && (NO_UNDERWEAR in H.dna.species.species_traits))
|
|
to_chat(user, "<span class='warning'>You are not capable of wearing underwear.</span>")
|
|
return
|
|
|
|
var/choice = input(user, "Underwear, Undershirt, or Socks?", "Changing") as null|anything in list("Underwear","Undershirt","Socks")
|
|
|
|
if(!Adjacent(user))
|
|
return
|
|
switch(choice)
|
|
if("Underwear")
|
|
var/new_undies = input(user, "Select your underwear", "Changing") as null|anything in GLOB.underwear_list
|
|
if(new_undies)
|
|
H.underwear = new_undies
|
|
|
|
if("Undershirt")
|
|
var/new_undershirt = input(user, "Select your undershirt", "Changing") as null|anything in GLOB.undershirt_list
|
|
if(new_undershirt)
|
|
H.undershirt = new_undershirt
|
|
if("Socks")
|
|
var/new_socks = input(user, "Select your socks", "Changing") as null|anything in GLOB.socks_list
|
|
if(new_socks)
|
|
H.socks= new_socks
|
|
|
|
add_fingerprint(H)
|
|
H.update_body()
|