Rags can clean kitchen machines just like real life (#24748)

This commit is contained in:
CRUNCH
2024-03-27 05:53:03 +00:00
committed by GitHub
parent 0a16d6e9ec
commit 8dc0120946
@@ -83,7 +83,7 @@
default_deconstruction_crowbar(user, O)
if(dirty == MAX_DIRT) // The machine is all dirty so can't be used!
if(istype(O, /obj/item/reagent_containers/spray/cleaner) || istype(O, /obj/item/soap)) // If they're trying to clean it then let them
if(istype(O, /obj/item/reagent_containers/spray/cleaner) || istype(O, /obj/item/soap) || istype(O, /obj/item/reagent_containers/glass/rag)) // If they're trying to clean it then let them
user.visible_message("<span class='notice'>[user] starts to clean [src].</span>", "<span class='notice'>You start to clean [src].</span>")
if(do_after(user, 20 * O.toolspeed, target = src))
user.visible_message("<span class='notice'>[user] has cleaned [src].</span>", "<span class='notice'>You have cleaned [src].</span>")