Merge pull request #14121 from MrJWhit/port-Makes-the-microwave-cleanable-by-the-damp-rag-

Port of "Makes the microwave cleanable by the damp rag"
This commit is contained in:
Lin
2021-01-24 13:23:12 -06:00
committed by GitHub
@@ -151,10 +151,13 @@
to_chat(user, "<span class='warning'>You need more space cleaner!</span>")
return TRUE
if(istype(O, /obj/item/soap))
var/obj/item/soap/P = O
if(istype(O, /obj/item/soap) || istype(O, /obj/item/reagent_containers/rag))
var/cleanspeed = 50
if(istype(O, /obj/item/soap))
var/obj/item/soap/used_soap = O
cleanspeed = used_soap.cleanspeed
user.visible_message("[user] starts to clean \the [src].", "<span class='notice'>You start to clean \the [src]...</span>")
if(do_after(user, P.cleanspeed, target = src))
if(do_after(user, cleanspeed, target = src))
user.visible_message("[user] has cleaned \the [src].", "<span class='notice'>You clean \the [src].</span>")
dirty = 0
update_icon()