返回提交历史
Modified
src/services/loginRewardService.ts
+4
-0
XFEstudio/XFESpaceNinjaServer
fix: handle login reward not being able to give any recipe (#1479)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1479 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
b93a4a6d
代码差异
1 个文件
+4
-0
@@ -99,6 +99,10 @@ const getRandomLoginReward = (rng: CRng, day: number, inventory: TInventoryDatab
99
99
eligibleRecipes.push(uniqueName);
100
100
}
101
101
}
102
if (eligibleRecipes.length == 0) {
103
// This account has all warframes and weapons already mastered (filthy cheater), need a different reward.
104
return getRandomLoginReward(rng, day, inventory);
105
}
102
106
reward.StoreItemType = toStoreItem(rng.randomElement(eligibleRecipes));
103
107
}
104
108
return {