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

🆑
fix: You can no longer eat pizza floor tiles with your brain.
/🆑
This commit is contained in:
Jacquerel
2023-02-18 20:45:53 +00:00
committed by GitHub
parent 575629db6f
commit 6dc123735d
+1 -1
View File
@@ -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