Open AlisonHuang777 opened 3 months ago
That's unfortunate, as far as I remember the rimworld code is a maze of rules and exceptions, that also depends on installed dlcs. Keep also in mind that other mods can overwrite entire functions or patch function inputs/outputs, as well as inject code in the middle of functions. What pawns eat is a particularly contentious area.
All I am saying is that I won't have time to dig into this any time soon. But I won't mind a patch if someone figures it out.
My deduction is this:
There is a another code path that cause pawns to eat that ignores food restrictions. Since animals do not have food restrictions in the game, no dev had a reason to ensure that animal pawns always consult food restrictions.
So there is code path or exception for animals that bypass restrictions. Another clue that this is not the code path used by the dev tool.
Log: https://gist.github.com/HugsLibRecordKeeper/cee2a0db024fe73d44d3bcbbb48b353c
Occasionally I can see my animals do this. But whatever I do, this bug never occurs when I try to manually trigger it with dev tool (lowering the food bar so the game will assign a food), no matter what save I'm playing.