From 6dc123735d60d067be8cb1f3202cbae9aa1e3e90 Mon Sep 17 00:00:00 2001 From: Jacquerel Date: Sat, 18 Feb 2023 20:45:53 +0000 Subject: [PATCH] You can't eat a turf unless you are standing next to it (#73481) ## About The Pull Request Fixes #73115, don't you love telepathy? Just adds a range check to the general "can I eat this now?" proc. I couldn't think of any situation where you should be able to eat something which isn't next to you. I tested it and you can still feed people and eat food from your inventory. ## Why It's Good For The Game It's funny to be able to eat pizza floor with your brain but not intended. ## Changelog :cl: fix: You can no longer eat pizza floor tiles with your brain. /:cl: --- code/datums/components/food/edible.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/components/food/edible.dm b/code/datums/components/food/edible.dm index 2821ddf9284..2a829bd3e35 100644 --- a/code/datums/components/food/edible.dm +++ b/code/datums/components/food/edible.dm @@ -300,7 +300,7 @@ Behavior that's still missing from this component that original food items had t var/atom/owner = parent - if(feeder.combat_mode) + if(feeder.combat_mode || !in_range(owner, eater)) return . = COMPONENT_CANCEL_ATTACK_CHAIN //Point of no return I suppose