Fixed cultist rewards not taking into account stack size in reward amount calculations
This commit is contained in:
parent
da09be1c58
commit
3f583630e5
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user