chore: reduce inventory byte size when faking XP (#2968)
Reviewed-on: #2968 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
							
								
									d794bd94ce
								
							
						
					
					
						commit
						00acaed62a
					
				@ -353,11 +353,11 @@ export const getInventoryResponse = async (
 | 
				
			|||||||
        if (!xpBasedLevelCapDisabled) {
 | 
					        if (!xpBasedLevelCapDisabled) {
 | 
				
			||||||
            // This client has not been patched to accept any mastery rank, need to fake the XP.
 | 
					            // This client has not been patched to accept any mastery rank, need to fake the XP.
 | 
				
			||||||
            inventoryResponse.XPInfo = [];
 | 
					            inventoryResponse.XPInfo = [];
 | 
				
			||||||
            let numFrames = getExpRequiredForMr(Math.min(inventory.spoofMasteryRank, 5030)) / 6000;
 | 
					            let numFrames = getExpRequiredForMr(Math.min(inventory.spoofMasteryRank, 5030)) / (30 * 200);
 | 
				
			||||||
            while (numFrames-- > 0) {
 | 
					            while (numFrames-- > 0) {
 | 
				
			||||||
                inventoryResponse.XPInfo.push({
 | 
					                inventoryResponse.XPInfo.push({
 | 
				
			||||||
                    ItemType: "/Lotus/Powersuits/Mag/Mag",
 | 
					                    ItemType: "/Lotus/Powersuits/Mag/Mag",
 | 
				
			||||||
                    XP: 1_600_000
 | 
					                    XP: 900_000 // Enough for rank 30 as per https://wiki.warframe.com/w/Affinity
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user