Example #1
0
 public void Initialize(int Level, Attributes attributes)
 {
     level = Level;
     maxHealth = level * attributes.constitution;
     maxMana = level * attributes.intelligence;
     curHealth = maxHealth;
     curMana = maxMana;
 }
Example #2
0
        public bool CheckHit(Attributes theirAttribs)
        {
            Random rnd = GameManager.GetInstance().Random;

            int myCheck = rnd.Next(1, agility);
            int theirCheck = rnd.Next(1, theirAttribs.agility);
            return myCheck >= theirCheck;
        }