Files
Bubberstation/code/game/objects/structures/mop_bucket.dm
SkyratBot c23bd1cb8c [MIRROR] every case of initialize that should have mapload, does (#8374)
* every case of initialize that should have mapload, does

* E

Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
2021-09-24 23:07:53 +01:00

31 lines
959 B
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()
else
. = ..()
update_appearance()
/obj/structure/mopbucket/update_overlays()
. = ..()
if(reagents.total_volume > 0)
. += "mopbucket_water"