+惊喜牌组
This commit is contained in:
@@ -36,9 +36,10 @@ function extractInfoFromJSFolder(folderPath) {
|
|||||||
try {
|
try {
|
||||||
const manifestContent = fs.readFileSync(manifestPath, 'utf8');
|
const manifestContent = fs.readFileSync(manifestPath, 'utf8');
|
||||||
const manifest = JSON.parse(manifestContent);
|
const manifest = JSON.parse(manifestContent);
|
||||||
|
const combinedDescription = `${manifest.name || ''}~|~${manifest.description || ''}`;
|
||||||
return {
|
return {
|
||||||
version: manifest.version || '',
|
version: manifest.version || '',
|
||||||
description: convertNewlines(manifest.description || ''),
|
description: convertNewlines(combinedDescription),
|
||||||
author: manifest.authors && manifest.authors.length > 0 ? manifest.authors[0].name : '',
|
author: manifest.authors && manifest.authors.length > 0 ? manifest.authors[0].name : '',
|
||||||
tags: []
|
tags: []
|
||||||
};
|
};
|
||||||
@@ -66,13 +67,13 @@ function extractInfoFromTCGFile(filePath, parentFolder) {
|
|||||||
const descriptionMatch = content.match(/\/\/\s*描述:(.*)/);
|
const descriptionMatch = content.match(/\/\/\s*描述:(.*)/);
|
||||||
const characterMatches = content.match(/角色\d+=([^|\r\n{]+)/g);
|
const characterMatches = content.match(/角色\d+=([^|\r\n{]+)/g);
|
||||||
|
|
||||||
const tags = characterMatches
|
let tags = characterMatches
|
||||||
? characterMatches.map(match => match.split('=')[1].trim())
|
? characterMatches.map(match => match.split('=')[1].trim())
|
||||||
.filter(tag => tag && !tag.startsWith('角色'))
|
.filter(tag => tag && !tag.startsWith('角色'))
|
||||||
: [];
|
: [];
|
||||||
|
|
||||||
if (parentFolder === '惊喜牌组') {
|
if (filePath.includes('惊喜牌组')) {
|
||||||
tags.push('惊喜牌组');
|
tags = ['惊喜牌组', ...tags];
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -2483,7 +2483,7 @@
|
|||||||
"hash": "a51f01627936b578adfb8396831b91b86f54b150",
|
"hash": "a51f01627936b578adfb8396831b91b86f54b150",
|
||||||
"version": "1.5",
|
"version": "1.5",
|
||||||
"author": "HZYgrandma",
|
"author": "HZYgrandma",
|
||||||
"description": "自动调查离传送点较近的狗粮。请使用琳妮特前台,双风共鸣。并保证所有传送点都已经激活!",
|
"description": "自动狗粮~|~自动调查离传送点较近的狗粮。请使用琳妮特前台,双风共鸣。并保证所有传送点都已经激活!",
|
||||||
"tags": []
|
"tags": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -2492,7 +2492,7 @@
|
|||||||
"hash": "22e477c14c3af73d45728ec3c5ad77cf826cc640",
|
"hash": "22e477c14c3af73d45728ec3c5ad77cf826cc640",
|
||||||
"version": "1.1",
|
"version": "1.1",
|
||||||
"author": "huiyadanli",
|
"author": "huiyadanli",
|
||||||
"description": "BetterGI自带脚本,自动采集离传送点较近的晶蝶。请在队伍中务必携带早柚/瑶瑶,使用成男/成女角色。并保证所有传送点都已经激活!",
|
"description": "自动采集晶蝶(枫丹)~|~BetterGI自带脚本,自动采集离传送点较近的晶蝶。请在队伍中务必携带早柚/瑶瑶,使用成男/成女角色。并保证所有传送点都已经激活!",
|
||||||
"tags": []
|
"tags": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -2501,7 +2501,7 @@
|
|||||||
"hash": "e7ee69c66151b7be8dc20654ac4b461200429796",
|
"hash": "e7ee69c66151b7be8dc20654ac4b461200429796",
|
||||||
"version": "1.0",
|
"version": "1.0",
|
||||||
"author": "huiyadanli",
|
"author": "huiyadanli",
|
||||||
"description": "BetterGI自带脚本,用于传送后并执行自动秘境",
|
"description": "传送并自动秘境~|~BetterGI自带脚本,用于传送后并执行自动秘境",
|
||||||
"tags": []
|
"tags": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -2510,7 +2510,7 @@
|
|||||||
"hash": "72391915b574bf39e892f61f2880bf7cd4f49611",
|
"hash": "72391915b574bf39e892f61f2880bf7cd4f49611",
|
||||||
"version": "1.0",
|
"version": "1.0",
|
||||||
"author": "huiyadanli",
|
"author": "huiyadanli",
|
||||||
"description": "BetterGI自带脚本,只用于传送。方便在调度器配合键鼠脚本使用",
|
"description": "只是传送一下~|~BetterGI自带脚本,只用于传送。方便在调度器配合键鼠脚本使用",
|
||||||
"tags": []
|
"tags": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -2988,6 +2988,7 @@
|
|||||||
"author": "Womsxd",
|
"author": "Womsxd",
|
||||||
"description": "",
|
"description": "",
|
||||||
"tags": [
|
"tags": [
|
||||||
|
"惊喜牌组",
|
||||||
"林尼",
|
"林尼",
|
||||||
"琳妮特",
|
"琳妮特",
|
||||||
"珊瑚宫心海"
|
"珊瑚宫心海"
|
||||||
@@ -3001,6 +3002,7 @@
|
|||||||
"author": "Womsxd",
|
"author": "Womsxd",
|
||||||
"description": "",
|
"description": "",
|
||||||
"tags": [
|
"tags": [
|
||||||
|
"惊喜牌组",
|
||||||
"雷电将军",
|
"雷电将军",
|
||||||
"香菱",
|
"香菱",
|
||||||
"柯莱"
|
"柯莱"
|
||||||
@@ -3014,6 +3016,7 @@
|
|||||||
"author": "Womsxd",
|
"author": "Womsxd",
|
||||||
"description": "",
|
"description": "",
|
||||||
"tags": [
|
"tags": [
|
||||||
|
"惊喜牌组",
|
||||||
"钟离",
|
"钟离",
|
||||||
"胡桃",
|
"胡桃",
|
||||||
"行秋"
|
"行秋"
|
||||||
@@ -3027,6 +3030,7 @@
|
|||||||
"author": "Womsxd",
|
"author": "Womsxd",
|
||||||
"description": "",
|
"description": "",
|
||||||
"tags": [
|
"tags": [
|
||||||
|
"惊喜牌组",
|
||||||
"温迪",
|
"温迪",
|
||||||
"菲谢尔",
|
"菲谢尔",
|
||||||
"莫娜"
|
"莫娜"
|
||||||
@@ -3040,6 +3044,7 @@
|
|||||||
"author": "Womsxd",
|
"author": "Womsxd",
|
||||||
"description": "",
|
"description": "",
|
||||||
"tags": [
|
"tags": [
|
||||||
|
"惊喜牌组",
|
||||||
"纳西妲",
|
"纳西妲",
|
||||||
"九条裟罗",
|
"九条裟罗",
|
||||||
"莫娜"
|
"莫娜"
|
||||||
@@ -3053,6 +3058,7 @@
|
|||||||
"author": "Womsxd",
|
"author": "Womsxd",
|
||||||
"description": "",
|
"description": "",
|
||||||
"tags": [
|
"tags": [
|
||||||
|
"惊喜牌组",
|
||||||
"特瓦林",
|
"特瓦林",
|
||||||
"凯亚",
|
"凯亚",
|
||||||
"无相之雷"
|
"无相之雷"
|
||||||
@@ -3066,6 +3072,7 @@
|
|||||||
"author": "Womsxd",
|
"author": "Womsxd",
|
||||||
"description": "",
|
"description": "",
|
||||||
"tags": [
|
"tags": [
|
||||||
|
"惊喜牌组",
|
||||||
"若陀龙王",
|
"若陀龙王",
|
||||||
"菲谢尔",
|
"菲谢尔",
|
||||||
"纯水精灵"
|
"纯水精灵"
|
||||||
|
|||||||
Reference in New Issue
Block a user