forked from OpenWF/SpaceNinjaServer
		
	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,6 +153,8 @@ 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 (!item.excludeFromCodex) {
 | 
				
			||||||
 | 
					                // not a pvp variant
 | 
				
			||||||
                if (!uniqueName.startsWith("/Lotus/Types/Items/Deimos/")) {
 | 
					                if (!uniqueName.startsWith("/Lotus/Types/Items/Deimos/")) {
 | 
				
			||||||
                    res.ModularParts.push({
 | 
					                    res.ModularParts.push({
 | 
				
			||||||
                        uniqueName,
 | 
					                        uniqueName,
 | 
				
			||||||
@ -166,6 +168,7 @@ const getItemListsController: RequestHandler = (req, response) => {
 | 
				
			|||||||
                        name: getString(item.name, lang)
 | 
					                        name: getString(item.name, lang)
 | 
				
			||||||
                    });
 | 
					                    });
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        } else if (item.totalDamage !== 0) {
 | 
					        } else if (item.totalDamage !== 0) {
 | 
				
			||||||
            if (
 | 
					            if (
 | 
				
			||||||
                item.productCategory == "LongGuns" ||
 | 
					                item.productCategory == "LongGuns" ||
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user