mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-01 21:12:27 +00:00
This is used with FEA not ZAS Though it's kind of funny to look at what some of these values were set at. (For reference: ONE_ATMOSPHERE = 101.325)
28 lines
906 B
Plaintext
28 lines
906 B
Plaintext
/obj/structure/mopbucket
|
|
name = "mop bucket"
|
|
desc = "Fill it with water, but don't forget a mop!"
|
|
icon = 'icons/obj/janitor.dmi'
|
|
icon_state = "mopbucket"
|
|
density = 1
|
|
w_class = 3
|
|
flags = OPENCONTAINER
|
|
var/amount_per_transfer_from_this = 5 //shit I dunno, adding this so syringes stop runtime erroring. --NeoFite
|
|
|
|
|
|
/obj/structure/mopbucket/New()
|
|
create_reagents(100)
|
|
..()
|
|
|
|
/obj/structure/mopbucket/examine(mob/user)
|
|
if(..(user, 1))
|
|
user << "[src] \icon[src] contains [reagents.total_volume] unit\s of water!"
|
|
|
|
/obj/structure/mopbucket/attackby(obj/item/I, mob/user)
|
|
if(istype(I, /obj/item/weapon/mop))
|
|
if(reagents.total_volume < 1)
|
|
user << "<span class='warning'>\The [src] is out of water!</span>"
|
|
else
|
|
reagents.trans_to_obj(I, 5)
|
|
user << "<span class='notice'>You wet \the [I] in \the [src].</span>"
|
|
playsound(loc, 'sound/effects/slosh.ogg', 25, 1)
|