forked from OpenWF/SpaceNinjaServer
		
	feat: sortie mission credit rewards (#1828)
Closes #1820 Reviewed-on: OpenWF/SpaceNinjaServer#1828 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:
		
							parent
							
								
									506365f97e
								
							
						
					
					
						commit
						6b3f524574
					
				@ -803,6 +803,14 @@ export const addMissionRewards = async (
 | 
			
		||||
            missionCompletionCredits += addFixedLevelRewards(node.missionReward, inventory, MissionRewards, rewardInfo);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (rewardInfo.sortieTag == "Mission1") {
 | 
			
		||||
            missionCompletionCredits += 20_000;
 | 
			
		||||
        } else if (rewardInfo.sortieTag == "Mission2") {
 | 
			
		||||
            missionCompletionCredits += 30_000;
 | 
			
		||||
        } else if (rewardInfo.sortieTag == "Final") {
 | 
			
		||||
            missionCompletionCredits += 50_000;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (missions.Tag == "PlutoToErisJunction") {
 | 
			
		||||
            await createMessage(inventory.accountOwnerId, [
 | 
			
		||||
                {
 | 
			
		||||
 | 
			
		||||
@ -135,7 +135,7 @@ export interface IRewardInfo {
 | 
			
		||||
    invasionId?: string;
 | 
			
		||||
    invasionAllyFaction?: "FC_GRINEER" | "FC_CORPUS";
 | 
			
		||||
    sortieId?: string;
 | 
			
		||||
    sortieTag?: string;
 | 
			
		||||
    sortieTag?: "Mission1" | "Mission2" | "Final";
 | 
			
		||||
    sortiePrereqs?: string[];
 | 
			
		||||
    VaultsCracked?: number; // for Spy missions
 | 
			
		||||
    rewardTier?: number;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user