fix: don't give credits for junctions, the index, and free flight
All checks were successful
Build / build (pull_request) Successful in 1m25s
Build / build (push) Successful in 1m31s

This commit is contained in:
Sainan 2025-04-14 20:34:25 +02:00
parent 827ea47468
commit 4da68c8a7d

View File

@ -592,7 +592,14 @@ export const addMissionRewards = async (
const node = ExportRegions[missions.Tag];
//node based credit rewards for mission completion
if (node.missionIndex !== 28) {
if (
node.missionIndex != 23 && // junction
node.missionIndex != 28 && // open world
missions.Tag != "SolNode761" && // the index
missions.Tag != "SolNode762" && // the index
missions.Tag != "SolNode763" && // the index
missions.Tag != "CrewBattleNode556" // free flight
) {
const levelCreditReward = getLevelCreditRewards(node);
missionCompletionCredits += levelCreditReward;
inventory.RegularCredits += levelCreditReward;