bug: Lure behavior for sheep not working #98
Labels
Category: Gameplay Content
Requests, Issues and Changes targeting gameplay mechanics and content
Status: Needs Investigation
Requires to be checked for feasibility, reproducability, etc.
Topic: AI
Requests, Issues and Changes related to pathfinding, behaviors, etc.
Type: Bug
Issues reporting and PRs fixing problems
Context
The https://github.com/Terasology/WildAnimals/blob/develop/assets/behaviors/lure.behavior is currently used for the sheep mobs.
It is intended to give players a way to lure sheep together and eventually flock them in a pen for domestication. Sheep are supposed to
follow a player who is holding a grass item.
Problem
Unfortunately, this luring behavior does not work properly after the refactoring of behaviors onto https://github.com/Terasology/FlexiblePathfinding. The culprit seems to be somewhere in the
guard
behavior node:WildAnimals/assets/behaviors/lure.behavior
Lines 4 to 15 in c011fab
Goal
Sheep should follow the nearest player in range that is holding a grass item.
If no such player exists, sheep should perform the stray behavior.
Hints
This will require some debugging of the GuardAction from the Terasology engine repo, and in particular the parent class ConditionAction.
The text was updated successfully, but these errors were encountered: