mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-10 01:12:18 +00:00
This PR will lead us towards the Promised Day, for in its wake there shall be much celebration and ecstasy as this world becomes a world suitable for developer hegemony. The first strike is thusly; All << is converted into to_chat().
44 lines
1.2 KiB
Plaintext
44 lines
1.2 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(30)
|
|
janitorial_supplies |= src
|
|
|
|
/obj/item/weapon/mop/Destroy()
|
|
janitorial_supplies -= src
|
|
return ..()
|
|
|
|
/obj/item/weapon/mop/afterattack(atom/A, mob/user, proximity)
|
|
if(!proximity) return
|
|
if(istype(A, /turf) || istype(A, /obj/effect/decal/cleanable) || istype(A, /obj/effect/overlay) || istype(A, /obj/effect/rune))
|
|
if(reagents.total_volume < 1)
|
|
to_chat(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))
|
|
var/turf/T = get_turf(A)
|
|
if(T)
|
|
T.clean(src, user)
|
|
to_chat(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
|
|
..()
|