mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-06 15:02:29 +00:00
* Mops no longer wet the turf when you refill them from the mop bucket (#63549) * Mops no longer wet the turf when you refill them from the mop bucket Co-authored-by: oranges <email@oranges.net.nz>
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
/obj/structure/mopbucket//SKYRAT EDIT - ICON OVERRIDEN BY AESTHETICS - SEE MODULE
|
|
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(mapload)
|
|
. = ..()
|
|
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, span_warning("[src] is out of water!"))
|
|
else
|
|
reagents.trans_to(I, 5, transfered_by = user)
|
|
to_chat(user, span_notice("You wet [I] in [src]."))
|
|
playsound(loc, 'sound/effects/slosh.ogg', 25, TRUE)
|
|
update_appearance()
|
|
return TRUE //Stop the click handling chain so the mop after attack doesn't proc and you don't wet the turf the bucket is on
|
|
else
|
|
. = ..()
|
|
update_appearance()
|
|
|
|
/obj/structure/mopbucket/update_overlays()
|
|
. = ..()
|
|
if(reagents.total_volume > 0)
|
|
. += "mopbucket_water"
|