示例#1
0
        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();
 }
 public ScalingStatAttribute(ScalingType type)
 {
     scaling = type.ToString();
 }