Add code to choose loose loot min/max based on bot type
exUsec have higher values than others
This commit is contained in:
parent
5c2cd424a2
commit
1c9d8b7700
@ -140,7 +140,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: 1, healingMax: 2,
|
||||||
looseLootMin: 0, looseLootMax: 3,
|
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
|
||||||
}
|
}
|
||||||
@ -213,5 +213,25 @@ namespace Generator.Helpers.Gear
|
|||||||
|
|
||||||
return new MinMax(min, max);
|
return new MinMax(min, max);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static MinMax GetLooseLootCountByBotType(BotType botType)
|
||||||
|
{
|
||||||
|
int min;
|
||||||
|
int max;
|
||||||
|
|
||||||
|
switch (botType)
|
||||||
|
{
|
||||||
|
case BotType.exUsec:
|
||||||
|
min = 3;
|
||||||
|
max = 4;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
min = 1;
|
||||||
|
max = 4;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return new MinMax(min, max);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user