Jump to content

Woby can set a digging position on top of a structure or obstacle, resulting in getting stuck trying to do so


hoxi
  • Pending

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.



User Feedback


I think the best alternative if Woby can't reach the digging spot she instead should dig underneath her feet and skip having to search for everything with collisions or a set spot

Share this comment


Link to comment
Share on other sites

4 minutes ago, Pedro cc said:

I think the best alternative if Woby can't reach the digging spot she instead should dig underneath her feet and skip having to search for everything with collisions or a set spot

Only issue with that is that the tile where she's standing on might not be the same as the one she chose to dig, hence the suggestion to retry again immediately. Then again, this could be accounted for too.

Share this comment


Link to comment
Share on other sites



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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...