返回提交历史
Modified
src/helpers/relicHelper.ts
+1
-0
XFEstudio/XFESpaceNinjaServer
fix: handle relic reward multiplier in fixup logic (#4301)
Closes #4300 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4301 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
a310acf9
代码差异
1 个文件
+1
-0
@@ -125,6 +125,7 @@ export const ensureRelicRewardIsCorrect = async (
125
125
x => x.AccountId == userParticipantInfo.ChosenRewardOwner
126
126
)!;
127
127
const chosenReward = getTypeCountForParticiantReward(chosenParticipantInfo);
128
chosenReward.ItemCount *= inventory.relicRewardItemCountMultiplier ?? 1;
128
129
if (chosenReward.ItemType != userReward.ItemType || chosenReward.ItemCount != userReward.ItemCount) {
129
130
logger.debug(`fixing up wave ${wi.Wave} reward for ${inventory.accountOwnerId.toString()}`, {
130
131
toRemove: userReward,