Actually, I was wrong about Fighter, this is all handled within WeaponConfig now (in Core Combat, Fighter was an IModifierProvider and got it’s information from reading the weapon damage.
Like StatsEquipableItem, WeaponConfig should be implementing the IModifierProvider interface. This will allow the StatsEquipment to get the data when GetAdditiveModifiers is called by BaseStats.
With the IModifierProvider interface added to the class declaration, here are the methods from the course that should be in plalce
public IEnumerable<float> GetAdditiveModifiers(Stat stat)
{
if (stat == Stat.Damage) yield return weaponDamage;
}
public IEnumerable<float> GetPercentageModifiers(Stat stat)
{
if (stat == Stat.Damage) yield return percentageBonus;
}
You’ll also need a [SerializeField] for the percentage Bonus in your fields.