Files
Paradise/code/modules/detective_work/footprints_and_rag.dm
T
e7b396eddf Silicon Chamo properly hides huds (#22312)
* hide hud

* more documentation

* Update code/modules/mob/mob_vars.dm

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

* Update code/modules/mob/mob_vars.dm

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

---------

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
2023-11-01 20:10:15 +00:00

35 lines
1.2 KiB
Plaintext

/obj/item/clothing/gloves
var/transfer_blood = 0
/obj/item/reagent_containers/glass/rag
name = "damp rag"
desc = "For cleaning up messes, you suppose."
w_class = WEIGHT_CLASS_TINY
icon = 'icons/obj/toy.dmi'
icon_state = "rag"
amount_per_transfer_from_this = 5
possible_transfer_amounts = null
volume = 5
flags = NOBLUDGEON
container_type = OPENCONTAINER
has_lid = FALSE
blocks_emissive = EMISSIVE_BLOCK_GENERIC
var/wipespeed = 30
/obj/item/reagent_containers/glass/rag/attack(atom/target as obj|turf|area, mob/user as mob , flag)
if(ismob(target) && target.reagents && reagents.total_volume)
user.visible_message("<span class='danger'>[user] has smothered [target] with [src]!</span>", "<span class='danger'>You smother [target] with [src]!</span>", "You hear some struggling and muffled cries of surprise")
src.reagents.reaction(target, REAGENT_TOUCH)
src.reagents.clear_reagents()
return
else
..()
/obj/item/reagent_containers/glass/rag/afterattack(atom/target, mob/user, proximity)
if(!proximity || ishuman(target)) //Human check so we don't clean the person we're trying to ether
return
target.cleaning_act(user, src, wipespeed)
/obj/item/reagent_containers/glass/rag/can_clean()
return TRUE