mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 12:35:33 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user