From 5504fb6a6aec6a91fac50bade246af575a796ddd Mon Sep 17 00:00:00 2001 From: Ghommie Date: Sun, 21 Jul 2019 11:27:26 +0200 Subject: [PATCH] Alt click examine string. --- code/modules/reagents/reagent_containers/rags.dm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/code/modules/reagents/reagent_containers/rags.dm b/code/modules/reagents/reagent_containers/rags.dm index 3c240cd4c7..7a3d709d3a 100644 --- a/code/modules/reagents/reagent_containers/rags.dm +++ b/code/modules/reagents/reagent_containers/rags.dm @@ -18,6 +18,11 @@ user.visible_message("[user] is smothering [user.p_them()]self with [src]! It looks like [user.p_theyre()] trying to commit suicide!") return (OXYLOSS) +/obj/item/reagent_containers/rag/examine(mob/user) + . = ..() + if(reagents.total_volume) + to_chat(user, "Alt-Click to squeeze the liquids out of it.") + /obj/item/reagent_containers/rag/afterattack(atom/A as obj|turf|area, mob/user,proximity) . = ..() if(!proximity) @@ -69,8 +74,8 @@ /obj/item/reagent_containers/rag/AltClick(mob/user) . = ..() - if(reagents.total_volume) - to_chat(user, "You start squeezing the liquids out of \the [src]") + if(reagents.total_volume && user.canUseTopic(src, BE_CLOSE)) + to_chat(user, "You start squeezing the liquids out of \the [src]...") if(do_after(user, 30, TRUE, src)) to_chat(user, "You squeeze \the [src] dry.") var/atom/react_loc = get_turf(src)