Renamed Minmax to MinMaxDouble and added MinMaxInt

Swapped various doubles for ints across loot generator and airdrop code paths

Fixed forced airdrop loot being returned with a decimal stack count
This commit is contained in:
Chomp
2025-02-10 09:57:01 +00:00
parent c8dadd106c
commit 08b5caf337
33 changed files with 175 additions and 139 deletions
@@ -360,7 +360,7 @@ public class BotEquipmentModGenerator(
return result;
}
private MinMax GetMinMaxArmorPlateClass(List<TemplateItem> platePool)
private MinMaxDouble GetMinMaxArmorPlateClass(List<TemplateItem> platePool)
{
platePool.Sort(
(x, y) =>
@@ -379,7 +379,7 @@ public class BotEquipmentModGenerator(
}
);
return new MinMax
return new MinMaxDouble
{
Min = platePool[0].Properties.ArmorClass,
Max = platePool[platePool.Count - 1].Properties.ArmorClass