fix: handle high spoofed mastery rank plus noDailyStandingLimits
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (18) (push) Successful in 44s
				
			
		
			
				
	
				Build / build (22) (push) Successful in 1m8s
				
			
		
			
				
	
				Build / build (20) (push) Successful in 1m2s
				
			
		
			
				
	
				Build / build (18) (pull_request) Successful in 42s
				
			
		
			
				
	
				Build / build (20) (pull_request) Successful in 1m9s
				
			
		
			
				
	
				Build / build (22) (pull_request) Successful in 1m5s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (18) (push) Successful in 44s
				
			Build / build (22) (push) Successful in 1m8s
				
			Build / build (20) (push) Successful in 1m2s
				
			Build / build (18) (pull_request) Successful in 42s
				
			Build / build (20) (pull_request) Successful in 1m9s
				
			Build / build (22) (pull_request) Successful in 1m5s
				
			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.
This commit is contained in:
		
							parent
							
								
									2d6e096fde
								
							
						
					
					
						commit
						143e1f593c
					
				@ -246,8 +246,9 @@ export const getInventoryResponse = async (
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (config.noDailyStandingLimits) {
 | 
					    if (config.noDailyStandingLimits) {
 | 
				
			||||||
 | 
					        const spoofedDailyAffiliation = Math.max(999_999, 16000 + inventoryResponse.PlayerLevel * 500);
 | 
				
			||||||
        for (const key of allDailyAffiliationKeys) {
 | 
					        for (const key of allDailyAffiliationKeys) {
 | 
				
			||||||
            inventoryResponse[key] = 999_999;
 | 
					            inventoryResponse[key] = spoofedDailyAffiliation;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user