Add medical item override

This commit is contained in:
Chomp 2022-01-15 12:10:58 +00:00
parent f9e6be6e90
commit 33dcfc042e

View File

@ -151,7 +151,7 @@ namespace Generator.Helpers.Gear
{ {
bot.generation = new GenerationChances( bot.generation = new GenerationChances(
bot.inventory.items.SpecialLoot.Count, bot.inventory.items.SpecialLoot.Count, bot.inventory.items.SpecialLoot.Count, bot.inventory.items.SpecialLoot.Count,
healingMin: 1, healingMax: 2, healingMin: GetMedicalItemCountByBotType(bot.botType).min, healingMax: GetMedicalItemCountByBotType(bot.botType).max,
looseLootMin: GetLooseLootCountByBotType(bot.botType).min, looseLootMax: GetLooseLootCountByBotType(bot.botType).max, looseLootMin: GetLooseLootCountByBotType(bot.botType).min, looseLootMax: GetLooseLootCountByBotType(bot.botType).max,
magazinesMin: GetMagazineCountByBotType(bot.botType).min, MagazineMax: GetMagazineCountByBotType(bot.botType).max, magazinesMin: GetMagazineCountByBotType(bot.botType).min, MagazineMax: GetMagazineCountByBotType(bot.botType).max,
grenandesMin: 0, grenadesMax: 5); //TODO get dynamically grenandesMin: 0, grenadesMax: 5); //TODO get dynamically
@ -245,5 +245,25 @@ namespace Generator.Helpers.Gear
return new MinMax(min, max); return new MinMax(min, max);
} }
private static MinMax GetMedicalItemCountByBotType(BotType botType)
{
int min;
int max;
switch (botType)
{
case BotType.bosssanitar:
min = 4;
max = 6;
break;
default:
min = 1;
max = 2;
break;
}
return new MinMax(min, max);
}
} }
} }