Exemple #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 });
     }
 }
Exemple #2
0
 public AttackInfo Atak(Character target, Attack atak)
 {
     return new AttackInfo() { ToHit = (target.CurrentStats.AC - atak.ToHit).ToString() };
 }
Exemple #3
0
 public void DoDamage(Character target, int damage)
 {
     target.CurrentStats.HP -= damage;
 }
Exemple #4
0
 public void AddMember(Character character)
 {
     Members.Add(character);
     Members.Sort();
 }