예제 #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;
 }