Fixed FilterBotEquipment nullref + others

Forced hideoutAreaStashes to show
Forced fastPanel to show

Forced bot min level to be no less than 1
This commit is contained in:
Chomp
2025-01-26 09:52:36 +00:00
parent f9bd5aecd3
commit 4cf908eaae
4 changed files with 14 additions and 11 deletions
@@ -74,6 +74,9 @@ public class BotLevelGenerator(
)
: Math.Min(levelDetails.Min.Value, maxAvailableLevel); // Not pmc with override or non-pmc
// Force min level to be 1
minPossibleLevel = Math.Max(1, minPossibleLevel);
var maxPossibleLevel = isPmc && pmcOverride is not null
? Math.Min(pmcOverride.Max.Value, maxAvailableLevel) // Was a PMC and they have a level override
: Math.Min(levelDetails.Max.Value, maxAvailableLevel); // Not pmc with override or non-pmc