private IEnumerable <ILootGroup> GetLootGroups() { var lootGroups = new List <ILootGroup>(); for (int i = 0; i < RandomGenerationHelper.RandomNumber(1, 5); i++) { lootGroups.Add(new LootGroup { IsPossible = true, LootGroupRollProbability = RandomGenerationHelper.RandomNumber(1, 100), LootItems = GetLootItems() } ); } return(lootGroups); }
private IEnumerable <ILootItem> GetLootItems() { var lootItems = new List <ILootItem>(); for (var i = 0; i < RandomGenerationHelper.RandomNumber(1, 5); i++) { lootItems.Add(new LootItem { GenerationParameters = null, Id = RandomGenerationHelper.RandomNumber(100), IsGuaranteed = false, IsPossible = true, IsUnique = false, ItemsExcludedIfDropped = null, Probability = RandomGenerationHelper.RandomNumber(1, 100) }); } return(lootItems); }