mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-17 12:35:26 +00:00
Just in time for the feature freeze, a big change that will introduce bugs! Yay! Mob verb is called verb/examinate(target), which just calls target.examine(user) and face_atom(target) For explanation why, see http://www.byond.com/forum/?post=1326139&page=2#comment8198716 Long story short, mob verbs are much faster than object verbs. The goal is to make right-click menus populate faster. Also changes a bunch of examine() procs to always, ALWAYS call the parent. Except mobs, but you have 1 guess why I'm not touching them. Mostly this affects obj/item/examine(). And also remove a whole shitload of pointless set src in view(2) kind of crap. Also span classes.
22 lines
724 B
Plaintext
22 lines
724 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 = 1
|
|
pressure_resistance = 5
|
|
flags = 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)
|
|
if(istype(I, /obj/item/weapon/mop))
|
|
if(reagents.total_volume < 1)
|
|
user << "[src] is out of water!</span>"
|
|
else
|
|
reagents.trans_to(I, 5)
|
|
user << "<span class='notice'>You wet [I] in [src].</span>"
|
|
playsound(loc, 'sound/effects/slosh.ogg', 25, 1) |