Overview

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.

Parts

Picking a feed interaction

Individual pieces of food may match multiple feed interactions. 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.

What is affection

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.

Gaining affection

When a food is fed to a Pokémon, the Pokémon gains affection towards that player based on the following logic:

In short:

  1. Base points – Each food gives a fixed baseAffection.
  2. Taste multiplier – Multiply that base by a booster:
  3. Result – Add the final (base × booster) to the Pokémon’s current affection.