mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 23:23:28 +01:00
9e6dcf9c46
* removes the remaining datum redeclares * the two fixes * finneee contra * OK CONTRA * readd * CURSED TO BE BROWN! * facking automerge
32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
/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
|