Esempio n. 1
0
        public CombatAttack AttackByAbility(Combatant attacker, CombatAbility abilityAttack)
        {
            var attack = new CombatAttack(0, abilityAttack.damageType);
            var cl     = new StringBuilder();

            float sourceDamage = abilityAttack.damageMag * abilityAttack.damageMod;

            cl.AppendLine("Source Damage: " + sourceDamage.ToString());

            float stattedDamage = attacker.CombatantStats.CalculateStatMod(sourceDamage, abilityAttack);

            cl.AppendLine("Statted Damage: " + stattedDamage.ToString());

            attack.SetAttackDamage(stattedDamage);
            return(attack);
        }
Esempio n. 2
0
 public void DamageCombatant(Combatant target, CombatAttack combatAttack)
 {
 }