From b917f4dee4d1b7022ccc002f7447d1ec6c4d53ef Mon Sep 17 00:00:00 2001 From: Theos Date: Mon, 11 Dec 2023 20:37:41 -0500 Subject: [PATCH] Removes telekinetic beaker cap manipulation (#2572) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## About The Pull Request AltClick() does not by default check for range (and probably other stuff), adds a can_interact() check ## Why It's Good For The Game fixes #1498 ## Changelog 🆑 fix: Players are no longer bottlecap-omancers, and can no longer magically manipulate bottle caps at range /🆑 --------- Signed-off-by: Theos --- code/modules/reagents/reagent_containers.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/reagents/reagent_containers.dm b/code/modules/reagents/reagent_containers.dm index 735b232a6cd..55fdd7ec0e0 100644 --- a/code/modules/reagents/reagent_containers.dm +++ b/code/modules/reagents/reagent_containers.dm @@ -138,6 +138,8 @@ reagents.remove_reagent(reag.type, reag.volume * frac) /obj/item/reagent_containers/AltClick(mob/user) + if(!can_interact(user)) + return . = ..() if(can_have_cap) if(cap_lost)