mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 03:57:48 +01:00
refactors most spans
This commit is contained in:
@@ -35,13 +35,13 @@
|
||||
/obj/item/mop_deploy/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))
|
||||
user.visible_message("<span class='warning'>[user] begins to clean \the [get_turf(A)].</span>")
|
||||
user.visible_message(span_warning("[user] begins to clean \the [get_turf(A)]."))
|
||||
|
||||
if(do_after(user, 40))
|
||||
var/turf/T = get_turf(A)
|
||||
if(T)
|
||||
T.clean_deploy(src)
|
||||
to_chat(user, "<span class='notice'>You have finished mopping!</span>")
|
||||
to_chat(user, span_notice("You have finished mopping!"))
|
||||
|
||||
/obj/effect/attackby(obj/item/I, mob/user)
|
||||
if(istype(I, /obj/item/mop_deploy) || istype(I, /obj/item/soap))
|
||||
@@ -72,4 +72,4 @@
|
||||
host.pinned -= src
|
||||
host.embedded -= src
|
||||
host.drop_from_inventory(src)
|
||||
spawn(1) if(!QDELETED(src)) qdel(src)
|
||||
spawn(1) if(!QDELETED(src)) qdel(src)
|
||||
|
||||
Reference in New Issue
Block a user