forked from chomp/BotGenerator
Move special loot to correct place in output object
This commit is contained in:
parent
5ffd837124
commit
f695450f70
@ -85,7 +85,7 @@ namespace Generator
|
|||||||
|
|
||||||
private void AddSpecialLoot(Bot botToUpdate)
|
private void AddSpecialLoot(Bot botToUpdate)
|
||||||
{
|
{
|
||||||
botToUpdate.specialLoot.AddRange(SpecialLootHelper.GetSpecialLootForBotType(botToUpdate.botType));
|
botToUpdate.inventory.items.SpecialLoot.AddRange(SpecialLootHelper.GetSpecialLootForBotType(botToUpdate.botType));
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<string> GetItemsStoredInEquipmentItem(List<Datum> bots, string containerName)
|
private List<string> GetItemsStoredInEquipmentItem(List<Datum> bots, string containerName)
|
||||||
|
@ -109,7 +109,7 @@ namespace Generator.Helpers.Gear
|
|||||||
|
|
||||||
public static void AddGenerationChances(Bot bot)
|
public static void AddGenerationChances(Bot bot)
|
||||||
{
|
{
|
||||||
bot.generation = new GenerationChances(bot.specialLoot.Count > 0 ? 1 : 0 , bot.specialLoot.Count, 1, 2, 0, 3, 2, 4, 0, 5); //TODO get dynamically
|
bot.generation = new GenerationChances(bot.inventory.items.SpecialLoot.Count > 0 ? 1 : 0 , bot.inventory.items.SpecialLoot.Count, 1, 2, 0, 3, 2, 4, 0, 5); //TODO get dynamically
|
||||||
}
|
}
|
||||||
public static void CalculateEquipmentChances(Bot bot, List<Datum> baseBots)
|
public static void CalculateEquipmentChances(Bot bot, List<Datum> baseBots)
|
||||||
{
|
{
|
||||||
|
@ -60,11 +60,13 @@ namespace Generator.Models.Output
|
|||||||
Pockets = new List<string>();
|
Pockets = new List<string>();
|
||||||
Backpack = new List<string>();
|
Backpack = new List<string>();
|
||||||
SecuredContainer = new List<string>();
|
SecuredContainer = new List<string>();
|
||||||
|
SpecialLoot = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<string> TacticalVest { get; set; }
|
public List<string> TacticalVest { get; set; }
|
||||||
public List<string> Pockets { get; set; }
|
public List<string> Pockets { get; set; }
|
||||||
public List<string> Backpack { get; set; }
|
public List<string> Backpack { get; set; }
|
||||||
public List<string> SecuredContainer { get; set; }
|
public List<string> SecuredContainer { get; set; }
|
||||||
|
public List<string> SpecialLoot { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,6 @@ namespace Generator.Models.Output
|
|||||||
health = new Health();
|
health = new Health();
|
||||||
skills = new Skills();
|
skills = new Skills();
|
||||||
inventory = new Inventory();
|
inventory = new Inventory();
|
||||||
specialLoot = new List<string>();
|
|
||||||
firstName = new List<string>();
|
firstName = new List<string>();
|
||||||
lastName = new List<string>();
|
lastName = new List<string>();
|
||||||
difficulty = new Difficulty.Difficulty();
|
difficulty = new Difficulty.Difficulty();
|
||||||
@ -28,7 +27,6 @@ namespace Generator.Models.Output
|
|||||||
public Health health { get; set; }
|
public Health health { get; set; }
|
||||||
public Skills skills { get; set; }
|
public Skills skills { get; set; }
|
||||||
public Inventory inventory { get; set; }
|
public Inventory inventory { get; set; }
|
||||||
public List<string> specialLoot { get; set; }
|
|
||||||
public List<string> firstName { get; set; }
|
public List<string> firstName { get; set; }
|
||||||
public List<string> lastName { get; set; }
|
public List<string> lastName { get; set; }
|
||||||
public Difficulty.Difficulty difficulty { get; set;}
|
public Difficulty.Difficulty difficulty { get; set;}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user