forked from OpenWF/SpaceNinjaServer
		
	fix: put vault medallion into correct place (#2723)
Re #2719 Reviewed-on: OpenWF/SpaceNinjaServer#2723 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									e98cb2ec24
								
							
						
					
					
						commit
						a0bac12e95
					
				@ -1481,7 +1481,7 @@ export const addMissionRewards = async (
 | 
			
		||||
                    if (vault) {
 | 
			
		||||
                        currentJob = vault;
 | 
			
		||||
                        if (jobType.endsWith("VaultBounty")) {
 | 
			
		||||
                            currentJob.xpAmounts = [currentJob.xpAmounts.reduce((partialSum, a) => partialSum + a, 0)];
 | 
			
		||||
                            currentJob.xpAmounts[rewardInfo.JobTier!] = currentJob.xpAmounts.reduce((s, a) => s + a, 0);
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
@ -1498,6 +1498,7 @@ export const addMissionRewards = async (
 | 
			
		||||
                        medallionAmount = Math.floor(endlessJob.xpAmounts[index] * (1 + 0.15000001 * excess));
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
                if (typeof medallionAmount === "number" && !isNaN(medallionAmount)) {
 | 
			
		||||
                    await addItem(inventory, "/Lotus/Types/Items/Deimos/EntratiFragmentUncommonB", medallionAmount);
 | 
			
		||||
                    MissionRewards.push({
 | 
			
		||||
                        StoreItem: "/Lotus/StoreItems/Types/Items/Deimos/EntratiFragmentUncommonB",
 | 
			
		||||
@ -1507,6 +1508,12 @@ export const addMissionRewards = async (
 | 
			
		||||
                    logger.debug(
 | 
			
		||||
                        `Giving ${medallionAmount} medallions for the ${rewardInfo.JobStage} stage of the ${rewardInfo.JobTier} tier bounty`
 | 
			
		||||
                    );
 | 
			
		||||
                } else {
 | 
			
		||||
                    logger.warning(
 | 
			
		||||
                        `${jobType} tried to give ${medallionAmount} medallions for the ${rewardInfo.JobStage} stage of the ${rewardInfo.JobTier} tier bounty`
 | 
			
		||||
                    );
 | 
			
		||||
                    logger.warning(`currentJob`, { currentJob: currentJob });
 | 
			
		||||
                }
 | 
			
		||||
            } else {
 | 
			
		||||
                const specialCase = [
 | 
			
		||||
                    { endings: ["Heists/HeistProfitTakerBountyOne"], stage: 2, amount: 1000 },
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user