fix: don't give credits for junctions, the index, and free flight (#1635)

Closes #1625

Reviewed-on: OpenWF/SpaceNinjaServer#1635
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-04-15 06:16:31 -07:00 committed by Sainan
parent 0c884576bd
commit a6d2c8b18a

View File

@ -586,7 +586,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;