mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-09 16:07:40 +00:00
29 lines
890 B
Plaintext
29 lines
890 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 = TRUE
|
|
var/amount_per_transfer_from_this = 5 //shit I dunno, adding this so syringes stop runtime erroring. --NeoFite
|
|
|
|
|
|
/obj/structure/mopbucket/Initialize()
|
|
. = ..()
|
|
create_reagents(100, OPENCONTAINER)
|
|
|
|
/obj/structure/mopbucket/attackby(obj/item/I, mob/user, params)
|
|
if(istype(I, /obj/item/mop))
|
|
if(reagents.total_volume < 1)
|
|
to_chat(user, "[src] is out of water!</span>")
|
|
else
|
|
reagents.trans_to(I, 5)
|
|
to_chat(user, "<span class='notice'>You wet [I] in [src].</span>")
|
|
playsound(loc, 'sound/effects/slosh.ogg', 25, 1)
|
|
update_icon()
|
|
else
|
|
return ..()
|
|
|
|
/obj/structure/mopbucket/update_icon()
|
|
cut_overlays()
|
|
if(reagents.total_volume > 0)
|
|
add_overlay("mopbucket_water") |