//Rerolls the god, taking current items into account. public void RerollGod() { int choice; God godCandidate; do { choice = rnd.Next(legalGods.Count); godCandidate = legalGods[choice]; }while (!Build.All(x => x.godItemType.Contains(godCandidate.godType))); god = godCandidate; }