Update build.js
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user