For slots that have seasonal items added, force slot spawn chance to be at least 75%

This commit is contained in:
Dev 2023-11-01 11:00:43 +00:00
parent 1c6550894e
commit 9d3f6dc092

View File

@ -383,6 +383,9 @@ export class SeasonalEventService
const gearAmendments = botGearChanges[bot];
for (const equipmentSlot in gearAmendments)
{
// Adjust slots spawn chance to be at least 75%
botToUpdate.chances.equipment[equipmentSlot] = Math.max(botToUpdate.chances.equipment[equipmentSlot], 75);
// Grab gear to add and loop over it
const itemsToAdd = gearAmendments[equipmentSlot];
for (const itemTplIdToAdd in itemsToAdd)