public float GetScalingDamage(Obj_AI_Base target, DamageType Type, ScalingType Stat, float percentScaling) { float amount = ScalingFunc[Stat.ToString()](percentScaling); if (Type == DamageType.Magical) { return((float)Magic_damage_m * (float)source.CalcDamage(target, Damage.DamageType.Magical, amount)); } else if (Type == DamageType.Physical) { return((float)Physical_damage_m * (float)source.CalcDamage(target, Damage.DamageType.Physical, amount)); } else if (Type == DamageType.True) { return(amount); } return(0f); }
public ScalingStatAttribute(ScalingType type) { scaling = type.ToString(); }