When fed a registered food, Pokémon gain an amount of affection towards the player who fed them, based on the food’s base affection, flavors, and the Pokémon’s nature.
feed interaction
Individual pieces of food may match multiple feed interaction
s. For example, there could be a feed interaction
that targets raw chicken, and another that targets all raw meats. When the player feeds a Pokémon a piece of food, the mod picks the feed interaction
that would result in the highest affection gain for that Pokémon and piece of food.
Every Pokémon has an affection
property tied to it. This is a memory of how much affection each player who has gained affection with this particular Pokémon and how much they’ve gained. This means individual players have to gain affection towards a given Pokémon on their own, it’s not a team effort; the Pokémon remember how affectionate it is towards you, not how affectionate it is in general.
When a food is fed to a Pokémon, the Pokémon gains affection towards that player based on the following logic:
In short:
baseAffection
.likedModifier × (strength / totalStrength)
;