示例#1
0
 public void GetDamageFromAttack(Fighter.AttackArgs attackArgs)
 {
     if (attackArgs.AttackHit == Fighter.AttackArgs.HitByAttack.Hit)
     {
         attackArgs.Target.ActualHp -= attackArgs.Damage;
     }
     if (attackArgs.AttackHit == Fighter.AttackArgs.HitByAttack.CriticalHit)
     {
         attackArgs.Target.ActualHp -= attackArgs.Damage;
     }
     if (attackArgs.AttackHit == Fighter.AttackArgs.HitByAttack.Miss)
     {
         attackArgs.Target.ActualHp -= attackArgs.Damage;
     }
 }
示例#2
0
 static void ukaz(object sender, Fighter.AttackArgs e)
 {
     Console.WriteLine(sender + " - " + e.AttackHit + " for " + e.Damage + " on " + e.Target);
 }