public void Initialize(int Level, Attributes attributes) { level = Level; maxHealth = level * attributes.constitution; maxMana = level * attributes.intelligence; curHealth = maxHealth; curMana = maxMana; }
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; }