public void DoAttack(FriendlyCharacter target) { int damage = _attack - target.Defense; if (damage < 0) { damage = 0; } target.Health = (target.Health - damage); }
public string ReportDamage(FriendlyCharacter target) { int damage = _attack - target.Defense; if (damage < 0) { damage = 0; } return(damage.ToString()); }
public void DoAttack(FriendlyCharacter target) { target.Health = target.Health - 0; }