mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-14 10:53:42 +00:00
* Replaces a bunch of manual OPENCONTAINER checks with helper procs * Removes unnecessary vars * Updates reagent bitflags, adds some new ones * Replaces most of the is_open_container calls with more specific ones * Puts new AMOUNT_VISIBLE flag to use * Uses new helper procs in more objects * Standardizes chemicals logging * De-snowflakes two more checks * Fixes * Minor fixes and improvements
24 lines
754 B
Plaintext
24 lines
754 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
|
|
container_type = 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/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)
|
|
else
|
|
return ..() |