Jump to content

Woby cannot forage for carrots despite inclusion in PICKABLE_FOOD_PRODUCTS


Crestwave
  • Closed

The code lists carrots as one of the possible pickable products for Woby's skill:

-- componentutil.lua, line 709
PICKABLE_FOOD_PRODUCTS =
{
    ancientfruit_nightvision = true,
    berries = true,
    berries_juicy = true,
    blue_cap = true,
    cactus_meat = true,
    carrot = true,
    cave_banana = true,
    cutlichen = true,
    green_cap = true,
    red_cap = true,
}

However, the actual code for triggering it has an extra condition that bars targets with the quick pick animation, which carrots use. This means that Woby cannot pick them.

-- prefabs/wobysmall.lua, line 471
if not IsFoodSourcePickable(buffaction.target) or buffaction.target.components.pickable.quickpick then
	return -- Woby is not interested :P
end

I have no problem with carrots being excluded from foraging, but I'm curious whether this behavior is intended or not considering it is explicitly part of the products list. Ideally, either carrots should be removed from the product list, or the quickpick condition should be removed to reduce confusion.


Steps to Reproduce

1. Enable the Woby foraging skill.

2. Pick a carrot.

3. Note that she is uninterested in it.




User Feedback


This is working as intended. This list isn't Woby exclusive (besides only being used by Woby at the moment), and planted carrots are pickable food sources.

Changed Status to Closed

  • Like 1

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...