示例#1
0
 public void Execute(object active, Hero hero, IBattleAnimationSequence battleAnimationSequence, Action p)
 {
     hero.TakeDamage(this, battleAnimationSequence.Sucessful);
     p?.Invoke();
 }
示例#2
0
文件: Hero.cs 项目: Skyman2413/battle
 public void Attack(Hero hero)
 {
     hero.currentHealth -= armor * agility / 5.0 + baseDamage * strenght / 5.0;
     currentHealth      -= baseDamage * strenght / 20.0;
 }