fix: don't give mastery xp for SpecialItems except for venari (#2484)
Closes #2482 Reviewed-on: OpenWF/SpaceNinjaServer#2484 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
							
								
									8feb3a5b3c
								
							
						
					
					
						commit
						ba3df4bdbc
					
				@ -1662,6 +1662,11 @@ export const applyClientEquipmentUpdates = (
 | 
			
		||||
            item.XP ??= 0;
 | 
			
		||||
            item.XP += XP;
 | 
			
		||||
 | 
			
		||||
            if (
 | 
			
		||||
                categoryName != "SpecialItems" ||
 | 
			
		||||
                item.ItemType == "/Lotus/Powersuits/Khora/Kavat/KhoraKavatPowerSuit" ||
 | 
			
		||||
                item.ItemType == "/Lotus/Powersuits/Khora/Kavat/KhoraPrimeKavatPowerSuit"
 | 
			
		||||
            ) {
 | 
			
		||||
                let xpItemType = item.ItemType;
 | 
			
		||||
                if (item.ModularParts) {
 | 
			
		||||
                    for (const part of item.ModularParts) {
 | 
			
		||||
@ -1686,6 +1691,7 @@ export const applyClientEquipmentUpdates = (
 | 
			
		||||
                    });
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (InfestationDate) {
 | 
			
		||||
            // 2147483647000 means cured, otherwise became infected
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user