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
+2 -2
View File
@@ -388,7 +388,7 @@ public class BotController(
};
}
private MinMax? GetPmcConversionMinMaxForLocation(string? requestedBotRole, string? location)
private MinMaxDouble? GetPmcConversionMinMaxForLocation(string? requestedBotRole, string? location)
{
return _pmcConfig.ConvertIntoPmcChance!.TryGetValue(location?.ToLower() ?? "", out var mapSpecificConversionValues)
? mapSpecificConversionValues.GetValueOrDefault(requestedBotRole?.ToLower())
@@ -409,7 +409,7 @@ public class BotController(
return raidSettings;
}
private MinMax? GetPmcLevelRangeForMap(string? location)
private MinMaxDouble? GetPmcLevelRangeForMap(string? location)
{
return _pmcConfig.LocationSpecificPmcLevelOverride!.GetValueOrDefault(location?.ToLower() ?? "", null);
}