Files
Paradise/code/modules/detective_work/footprints_and_rag.dm
4c7e65d7b2 Allow simply putting soap/mop/rag in storage if clean. (#32092)
* Allow simply putting soap/mop/rag in storage if clean.

* Apply suggestion from review.

Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Signed-off-by: Alan <alfalfascout@users.noreply.github.com>

---------

Signed-off-by: Alan <alfalfascout@users.noreply.github.com>
Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
2026-07-01 23:13:20 +00:00

33 lines
1.1 KiB
Plaintext

/obj/item/reagent_containers/glass/rag
name = "damp rag"
desc = "For cleaning up messes, you suppose."
icon = 'icons/obj/toy.dmi'
icon_state = "rag"
inhand_icon_state = "rag"
amount_per_transfer_from_this = 5
possible_transfer_amounts = null
volume = 5
flags = NOBLUDGEON
has_lid = FALSE
blocks_emissive = EMISSIVE_BLOCK_GENERIC
var/wipespeed = 30
/obj/item/reagent_containers/glass/rag/mob_act(mob/target, mob/living/user)
if(target.reagents && reagents.total_volume)
user.visible_message(SPAN_DANGER("[user] has smothered [target] with [src]!"), SPAN_DANGER("You smother [target] with [src]!"), "You hear some struggling and muffled cries of surprise")
src.reagents.reaction(target, REAGENT_TOUCH)
src.reagents.clear_reagents()
return TRUE
else
return ..()
/obj/item/reagent_containers/glass/rag/normal_act(atom/target, mob/living/user)
// if it's a storage item and it isn't dirty, just put the rag in the storage
if(isstorage(target) && !target.is_dirty())
return ..()
target.cleaning_act(user, src, wipespeed)
return TRUE
/obj/item/reagent_containers/glass/rag/can_clean()
return TRUE