XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 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
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -0
Modified src/helpers/relicHelper.ts +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,