Herders don't get any experience
osechet opened this issue ยท 3 comments
Minecolonies version
version 1.12.2 or curse X.X.XX
Expected behavior
- Herders should get experience working with their animals.
Actual behaviour
- Herders experience stays at 0.
Steps to reproduce the problem
- Build any of the herders hut (tested with chicken, sheep and cow)
- Give the proper tools and food
- Bring some animals inside the fences
- Let the herder works
- Check the experience after a while. It remains at 0.
Note also that it makes no difference what level the building is or if the worker has an intelligence stat higher than 1 (I thought that might affect it). I have a level 5 dairy farm with the same issue as described above.
None of the new herders get experience.
They left out the line
worker.getCitizenExperienceHandler().setSkillModifier(2 * worker.getCitizenData().getEndurance() + worker.getCitizenData().getCharisma());
in the herder code. Of course it would change based on the primary skill/secondary skill for skill Modifier. Right now it is set to 0. Not experience for any of them.
Just need to add the line of code in AbstractEntityAIHerder or each class of the herders and it will start working. 2 second fix.