ItemAffinity component looks for items in the inventory (which includes the overflow container), but only updates when receiving events ("itemget", "itemlose" or "dropitem") from the entity it's assigned to. So this means that when an item is moved from the main inventory to the overflow container, ItemAffinity thinks that the item is lost, until it's updated again.
Start as Wurt, who has an affinity towards fish.
- Have lowered sanity
- Get fish in your main inventory (sanity begins increasing)
- Put in your backpack (sanity stops increasing)
- Do anything with the main inventory (sanity begins increasing again)