Пример #1
0
 public void DoDamage(Character attacker, Character target, int damage)
 {
     target.CurrentStats.HP -= damage;
     if (target.CurrentStats.HP <= 0)
     {
         attacker.Kills.Add(new KilledCreature() { Date = _helper.CurrentTime, Name = target.Name, Race = target.Race });
     }
 }
Пример #2
0
 public AttackInfo Atak(Character target, Attack atak)
 {
     return new AttackInfo() { ToHit = (target.CurrentStats.AC - atak.ToHit).ToString() };
 }
Пример #3
0
 public void DoDamage(Character target, int damage)
 {
     target.CurrentStats.HP -= damage;
 }
Пример #4
0
 public void AddMember(Character character)
 {
     Members.Add(character);
     Members.Sort();
 }