Code Examples
v4.0
Getting the impact on Stats
// This ignores the proficiency value and only handles the "value" value.
var damage = itemObject.GetEffectOn(Properties.Stats.MainStats.DamageUid).Item1;
var attack = itemObject.GetEffectOn(Properties.Stats.MainStats.AttackUid).Item1;
// This uses both
var damageEffect = itemObject.GetEffectOn(Properties.Stats.MainStats.DamageUid);
Debug.Log($"Damage value is {damageEffect.Item1} and proficiency is {damageEffect.Item2}");Last updated