Update build.js

This commit is contained in:
秋云
2025-04-28 19:43:11 +08:00
committed by GitHub
parent 82b9dc6775
commit 92fb689116

View File

@@ -85,6 +85,7 @@ function extractInfoFromPathingFile(filePath, parentFolders) {
const hasAnemoCollect = contentObj.positions.some(pos => pos.action === 'anemo_collect'); const hasAnemoCollect = contentObj.positions.some(pos => pos.action === 'anemo_collect');
const hasElectroCollect = contentObj.positions.some(pos => pos.action === 'electro_collect'); const hasElectroCollect = contentObj.positions.some(pos => pos.action === 'electro_collect');
const hasUpDownGrabLeaf = contentObj.positions.some(pos => pos.action === 'up_down_grab_leaf'); const hasUpDownGrabLeaf = contentObj.positions.some(pos => pos.action === 'up_down_grab_leaf');
const hasFight = contentObj.positions.some(pos => pos.action === 'fight');
if (hasNahidaCollect) { if (hasNahidaCollect) {
tags.push('纳西妲'); tags.push('纳西妲');
} }
@@ -100,6 +101,9 @@ function extractInfoFromPathingFile(filePath, parentFolders) {
if (hasUpDownGrabLeaf) { if (hasUpDownGrabLeaf) {
tags.push('四叶印'); tags.push('四叶印');
} }
if(hasFight){
tags.push('战斗');
}
} }
return { return {