The only way to get her out of this state is to have her go offscreen (as that will stop her brain and wipe the cached position), or swapping the badge off for a moment, which will get rid of the cached position.
In wobysmallbrain.lua, adding something to this function is necessary:
local function CanDigPoint(pt) return not TheWorld.Map:IsPointNearHole(pt) and TheWorld.Map:CanPlantAtPoint(pt:Get()) end
Keep in mind that checking for structures or walls alone might not cut it as there's other things with collisions, but I don't wanna just suggest checking for any entity as that can be expensive, even if it's limited to one Woby per Walter player.
A simple and cheap alternative is having her time out and try again, without setting a cooldown.
Steps to Reproduce
- Have Woby set a digging position on top of something that can physically stop her, or force set it manually.
- Notice how Woby will get stuck.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now