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