mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 06:00:23 +01:00
Condensed single fantasy items into one file
This commit is contained in:
@@ -385,57 +385,3 @@
|
||||
if(!anchored)
|
||||
to_chat(user,"<span class='notice'> The bed isn't secured.</span>")
|
||||
return
|
||||
|
||||
// Bath
|
||||
|
||||
/obj/structure/bed/bath
|
||||
name = "wash tub"
|
||||
desc = "A wooden tub that can be filled with water for washing yourself."
|
||||
icon_state = "bath"
|
||||
base_icon = "bath"
|
||||
flags = OPENCONTAINER
|
||||
var/amount_per_transfer_from_this = 5
|
||||
|
||||
/obj/structure/bed/bath/update_icon()
|
||||
if(reagents.total_volume < 1)
|
||||
icon_state = "bath"
|
||||
else if(reagents.total_volume < 50)
|
||||
icon_state = "bath1"
|
||||
else if(reagents.total_volume < 150)
|
||||
icon_state = "bath2"
|
||||
else if(reagents.total_volume < 301)
|
||||
icon_state = "bath3"
|
||||
return // Doesn't care about material or anything else.
|
||||
|
||||
/obj/structure/bed/bath/attackby(obj/item/I, mob/user)
|
||||
if(istype(I, /obj/item/weapon/mop) || istype(I, /obj/item/weapon/soap)) //VOREStation Edit - "Allows soap and rags to be used on mopbuckets"
|
||||
if(reagents.total_volume < 1)
|
||||
to_chat(user, "<span class='warning'>\The [src] is out of water!</span>")
|
||||
else
|
||||
reagents.trans_to_obj(I, 5)
|
||||
to_chat(user, "<span class='notice'>You wet \the [I] in \the [src].</span>")
|
||||
playsound(src, 'sound/effects/slosh.ogg', 25, 1)
|
||||
if(istype(I, /obj/item/weapon/reagent_containers/glass))
|
||||
update_icon()
|
||||
return
|
||||
else if(istype(I, /obj/item/weapon/grab))
|
||||
var/obj/item/weapon/grab/G = I
|
||||
var/mob/living/affecting = G.affecting
|
||||
if(has_buckled_mobs()) //Handles trying to buckle someone else to a chair when someone else is on it
|
||||
to_chat(user, "<span class='notice'>\The [src] already has someone buckled to it.</span>")
|
||||
return
|
||||
user.visible_message("<span class='notice'>[user] attempts to buckle [affecting] into \the [src]!</span>")
|
||||
if(do_after(user, 20, G.affecting))
|
||||
affecting.loc = loc
|
||||
spawn(0)
|
||||
if(buckle_mob(affecting))
|
||||
affecting.visible_message(\
|
||||
"<span class='danger'>[affecting.name] is buckled to [src] by [user.name]!</span>",\
|
||||
"<span class='danger'>You are buckled to [src] by [user.name]!</span>",\
|
||||
"<span class='notice'>You hear metal clanking.</span>")
|
||||
qdel(I)
|
||||
|
||||
|
||||
/obj/structure/bed/bath/New()
|
||||
create_reagents(300)
|
||||
..()
|
||||
|
||||
@@ -124,62 +124,6 @@
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You need a tighter grip.</span>")
|
||||
|
||||
/obj/structure/toilet/wooden
|
||||
name = "wooden toilet"
|
||||
desc = "It's basically a hole in a box with a bucket inside. This one seems remarkably clean."
|
||||
icon_state = "toilet3"
|
||||
open = 1
|
||||
|
||||
/obj/structure/toilet/wooden/attack_hand(mob/living/user as mob)
|
||||
return //No lid
|
||||
|
||||
/obj/structure/toilet/wooden/attackby(obj/item/I as obj, mob/living/user as mob) //simpler interactions
|
||||
if(istype(I, /obj/item/weapon/grab))
|
||||
user.setClickCooldown(user.get_attack_speed(I))
|
||||
var/obj/item/weapon/grab/G = I
|
||||
|
||||
if(isliving(G.affecting))
|
||||
var/mob/living/GM = G.affecting
|
||||
|
||||
if(G.state>1)
|
||||
if(!GM.loc == get_turf(src))
|
||||
to_chat(user, "<span class='notice'>[GM.name] needs to be on the toilet.</span>")
|
||||
return
|
||||
if(open && !swirlie)
|
||||
user.visible_message("<span class='danger'>[user] starts to give [GM.name] a swirlie!</span>", "<span class='notice'>You start to give [GM.name] a swirlie!</span>")
|
||||
swirlie = GM
|
||||
if(do_after(user, 30, GM))
|
||||
user.visible_message("<span class='danger'>[user] gives [GM.name] a swirlie!</span>", "<span class='notice'>You give [GM.name] a swirlie!</span>", "You hear a toilet flushing.")
|
||||
if(!GM.internal)
|
||||
GM.adjustOxyLoss(5)
|
||||
swirlie = null
|
||||
else
|
||||
user.visible_message("<span class='danger'>[user] slams [GM.name] into the [src]!</span>", "<span class='notice'>You slam [GM.name] into the [src]!</span>")
|
||||
GM.adjustBruteLoss(5)
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You need a tighter grip.</span>")
|
||||
|
||||
if(cistern && !istype(user,/mob/living/silicon/robot)) //STOP PUTTING YOUR MODULES IN THE TOILET.
|
||||
if(I.w_class > 3)
|
||||
to_chat(user, "<span class='notice'>\The [I] does not fit.</span>")
|
||||
return
|
||||
if(w_items + I.w_class > 5)
|
||||
to_chat(user, "<span class='notice'>The cistern is full.</span>")
|
||||
return
|
||||
user.drop_item()
|
||||
I.loc = src
|
||||
w_items += I.w_class
|
||||
to_chat(user, "You carefully place \the [I] into the cistern.")
|
||||
return
|
||||
|
||||
/obj/structure/toilet/wooden/New()
|
||||
open = 1 //just to make sure it works
|
||||
icon_state = "toilet3"
|
||||
return
|
||||
|
||||
/obj/structure/toilet/wooden/update_icon()
|
||||
return
|
||||
|
||||
/obj/structure/urinal
|
||||
name = "urinal"
|
||||
desc = "The HU-452, an experimental urinal."
|
||||
|
||||
Reference in New Issue
Block a user