mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-25 08:34:23 +00:00
*TABLEPASS was already totally obsolete. FPRINT was used, but it was on virtually everything anyway. Removes those flags from every instance where they were used. Also assigned and removed other flags where it made sense. If it is desired, I can revive the flag as NOFPRINT, which would retain the original functionality, though inverted. That way it would be be used only where it was intentional (holodeck items could use this for example).
62 lines
1.8 KiB
Plaintext
62 lines
1.8 KiB
Plaintext
/obj/item/weapon/mop
|
|
desc = "The world of janitalia wouldn't be complete without a mop."
|
|
name = "mop"
|
|
icon = 'icons/obj/janitor.dmi'
|
|
icon_state = "mop"
|
|
force = 3.0
|
|
throwforce = 10.0
|
|
throw_speed = 5
|
|
throw_range = 10
|
|
w_class = 3.0
|
|
attack_verb = list("mopped", "bashed", "bludgeoned", "whacked")
|
|
var/mopping = 0
|
|
var/mopcount = 0
|
|
|
|
|
|
/obj/item/weapon/mop/New()
|
|
create_reagents(5)
|
|
|
|
|
|
obj/item/weapon/mop/proc/clean(turf/simulated/A)
|
|
if(reagents.has_reagent("water", 1))
|
|
A.clean_blood()
|
|
for(var/obj/effect/O in A)
|
|
if(istype(O,/obj/effect/rune) || istype(O,/obj/effect/decal/cleanable) || istype(O,/obj/effect/overlay))
|
|
del(O)
|
|
reagents.reaction(A, TOUCH, 10) //10 is the multiplier for the reaction effect. probably needed to wet the floor properly.
|
|
reagents.remove_any(1) //reaction() doesn't use up the reagents
|
|
|
|
|
|
/obj/item/weapon/mop/afterattack(atom/A, mob/user, proximity)
|
|
if(!proximity) return
|
|
if(istype(A, /turf/simulated) || istype(A, /obj/effect/decal/cleanable) || istype(A, /obj/effect/overlay) || istype(A, /obj/effect/rune))
|
|
if(reagents.total_volume < 1)
|
|
user << "<span class='notice'>Your mop is dry!</span>"
|
|
return
|
|
|
|
user.visible_message("<span class='warning'>[user] begins to clean \the [get_turf(A)].</span>")
|
|
|
|
if(do_after(user, 40))
|
|
if(A)
|
|
clean(get_turf(A))
|
|
user << "<span class='notice'>You have finished mopping!</span>"
|
|
|
|
|
|
/obj/effect/attackby(obj/item/I, mob/user)
|
|
if(istype(I, /obj/item/weapon/mop) || istype(I, /obj/item/weapon/soap))
|
|
return
|
|
..()
|
|
|
|
|
|
/obj/item/weapon/mop/proc/janicart_insert(mob/user, obj/structure/janitorialcart/J)
|
|
J.put_in_cart(src, user)
|
|
J.mymop=src
|
|
J.update_icon()
|
|
|
|
/obj/item/weapon/mop/cyborg
|
|
|
|
/obj/item/weapon/mop/cyborg/janicart_insert(mob/user, obj/structure/janitorialcart/J)
|
|
return
|
|
|
|
|