Fixed cultist rewards not taking into account stack size in reward amount calculations

This commit is contained in:
Dev 2024-09-13 09:40:29 +01:00
parent da09be1c58
commit 3f583630e5

View File

@ -248,9 +248,12 @@ export class CircleOfCultistService {
}, },
}; };
// Increment price of rewards to give to player and add to reward array // Increment price of rewards to give to player + add to reward array
itemsRewardedCount++; rewardItemCount++;
totalCost += this.itemHelper.getItemPrice(randomItemTplFromPool); const singleItemPrice = this.itemHelper.getItemPrice(randomItemTplFromPool);
const itemPrice = singleItemPrice * stackSize;
totalRewardCost += itemPrice;
rewards.push([rewardItem]); rewards.push([rewardItem]);
} }