public Encounter(IGame game) { for (int x = 0; x < game.GetPlayerCount(); x++) { creaturesInCombat.Add(game.GetPlayer(x)); creaturesInCombat.Add(new Creature("Skeleton", 14, 1, 2, 1, 4, 0, 12, 0, 0)); creaturesInCombat.Add(new Creature("Skeleton", 14, 1, 2, 1, 4, 0, 12, 0, 0)); if (RNG.GetInt(0, 2) > 0) { creaturesInCombat.Add(new Creature("Skeleton", 14, 1, 2, 1, 4, 0, 12, 0, 0)); } } }
public ICreature GetCreatureFromList(List <ICreature> creatures) { return(creatures[RNG.GetInt(0, creatures.Count - 1)]); }