fix: don't duplicate level key credits reward #1940
@ -858,8 +858,7 @@ export const addMissionRewards = async (
 | 
				
			|||||||
            for (const reward of fixedLevelRewards.levelKeyRewards2) {
 | 
					            for (const reward of fixedLevelRewards.levelKeyRewards2) {
 | 
				
			||||||
                //quest stage completion credit rewards
 | 
					                //quest stage completion credit rewards
 | 
				
			||||||
                if (reward.rewardType == "RT_CREDITS") {
 | 
					                if (reward.rewardType == "RT_CREDITS") {
 | 
				
			||||||
                    inventory.RegularCredits += reward.amount;
 | 
					                    missionCompletionCredits += reward.amount; // will be added to inventory in addCredits
 | 
				
			||||||
                    missionCompletionCredits += reward.amount;
 | 
					 | 
				
			||||||
                    continue;
 | 
					                    continue;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                MissionRewards.push({
 | 
					                MissionRewards.push({
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user