forked from OpenWF/SpaceNinjaServer
		
	fix: handle high spoofed mastery rank plus noDailyStandingLimits (#1201)
In case the spoofed mastery rank is so high that 999,999 is *less* than the assumed maximum value for daily affiliation bins, we'll just use that so that the bar is always (at least) 100% full. Reviewed-on: OpenWF/SpaceNinjaServer#1201
This commit is contained in:
		
							parent
							
								
									ecc2e35535
								
							
						
					
					
						commit
						b7f05e851c
					
				@ -246,8 +246,9 @@ export const getInventoryResponse = async (
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (config.noDailyStandingLimits) {
 | 
			
		||||
        const spoofedDailyAffiliation = Math.max(999_999, 16000 + inventoryResponse.PlayerLevel * 500);
 | 
			
		||||
        for (const key of allDailyAffiliationKeys) {
 | 
			
		||||
            inventoryResponse[key] = 999_999;
 | 
			
		||||
            inventoryResponse[key] = spoofedDailyAffiliation;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user