mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-01 04:21:42 +00:00
* Refactors most spans into span procs * AA * a * AAAAAAAAAAAAAAAAAAAAAA * Update species.dm Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
31 lines
952 B
Plaintext
31 lines
952 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()
|
|
. = ..()
|
|
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"
|