예제 #1
0
        private (double Heal, DamageOutput Damage) CalculateNumericEffects(Xml.Castable castable, Xml.ModifierEffect effect, Creature source)
        {
            double       heal = 0;
            DamageOutput dmg  = new DamageOutput();

            if (!effect.Heal.IsEmpty)
            {
                heal = NumberCruncher.CalculateHeal(castable, effect, Target, source, Name);
            }
            if (!effect.Damage.IsEmpty)
            {
                dmg = NumberCruncher.CalculateDamage(castable, effect, Target, source, Name);
            }
            return(heal, dmg);
        }
예제 #2
0
 public SimpleStatusEffect(double heal, DamageOutput damage)
 {
     Heal   = heal;
     Damage = damage;
 }