fix(webui): exclude zaw strike pvp variants (#2579)
Reviewed-on: OpenWF/SpaceNinjaServer#2579 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
							
								
									7e618539fa
								
							
						
					
					
						commit
						b15a635e11
					
				@ -153,18 +153,21 @@ const getItemListsController: RequestHandler = (req, response) => {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    for (const [uniqueName, item] of Object.entries(ExportWeapons)) {
 | 
					    for (const [uniqueName, item] of Object.entries(ExportWeapons)) {
 | 
				
			||||||
        if (item.partType) {
 | 
					        if (item.partType) {
 | 
				
			||||||
            if (!uniqueName.startsWith("/Lotus/Types/Items/Deimos/")) {
 | 
					            if (!item.excludeFromCodex) {
 | 
				
			||||||
                res.ModularParts.push({
 | 
					                // not a pvp variant
 | 
				
			||||||
                    uniqueName,
 | 
					                if (!uniqueName.startsWith("/Lotus/Types/Items/Deimos/")) {
 | 
				
			||||||
                    name: getString(item.name, lang),
 | 
					                    res.ModularParts.push({
 | 
				
			||||||
                    partType: item.partType
 | 
					                        uniqueName,
 | 
				
			||||||
                });
 | 
					                        name: getString(item.name, lang),
 | 
				
			||||||
            }
 | 
					                        partType: item.partType
 | 
				
			||||||
            if (uniqueName.split("/")[5] != "SentTrainingAmplifier") {
 | 
					                    });
 | 
				
			||||||
                res.miscitems.push({
 | 
					                }
 | 
				
			||||||
                    uniqueName: uniqueName,
 | 
					                if (uniqueName.split("/")[5] != "SentTrainingAmplifier") {
 | 
				
			||||||
                    name: getString(item.name, lang)
 | 
					                    res.miscitems.push({
 | 
				
			||||||
                });
 | 
					                        uniqueName: uniqueName,
 | 
				
			||||||
 | 
					                        name: getString(item.name, lang)
 | 
				
			||||||
 | 
					                    });
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        } else if (item.totalDamage !== 0) {
 | 
					        } else if (item.totalDamage !== 0) {
 | 
				
			||||||
            if (
 | 
					            if (
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user