返回提交历史
Modified
src/services/missionInventoryUpdateService.ts
+8
-1
XFEstudio/XFESpaceNinjaServer
fix: don't give credits for junctions, the index, and free flight (#1635)
Closes #1625 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1635 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
a6d2c8b1
代码差异
1 个文件
+8
-1
@@ -586,7 +586,14 @@ export const addMissionRewards = async (
586
586
const node = ExportRegions[missions.Tag];
587
587
588
588
//node based credit rewards for mission completion
589
if (node.missionIndex !== 28) {
589
if (
590
node.missionIndex != 23 && // junction
591
node.missionIndex != 28 && // open world
592
missions.Tag != "SolNode761" && // the index
593
missions.Tag != "SolNode762" && // the index
594
missions.Tag != "SolNode763" && // the index
595
missions.Tag != "CrewBattleNode556" // free flight
596
) {
590
597
const levelCreditReward = getLevelCreditRewards(node);
591
598
missionCompletionCredits += levelCreditReward;
592
599
inventory.RegularCredits += levelCreditReward;