From e4aad43ded7dfe1e457729a35c10bc6c9f0ef46d Mon Sep 17 00:00:00 2001 From: Kubbo <390378816@qq.com> Date: Tue, 14 Jan 2025 21:00:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(config):=20=E6=9B=B4=E6=96=B0=E8=A3=85?= =?UTF-8?q?=E5=A4=87=E5=9B=9E=E6=94=B6=E9=85=8D=E7=BD=AE=E5=B9=B6=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E8=A3=85=E5=A4=87=E7=AD=89=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 RecyclingSettingConfig.json 中添加新的装备回收选项,包括天之王者、天之天龙等 - 调整 StdItems.json 中多件装备的等级,以符合游戏内设定 - 更新 json2lua.js 以包含 RecyclingSettingConfig.json 文件的处理 --- configs/RecyclingSettingConfig.json | 41 ++++++++++++++++++++++++++--- configs/StdItems.json | 16 +++++------ json2lua.js | 2 +- 3 files changed, 46 insertions(+), 13 deletions(-) diff --git a/configs/RecyclingSettingConfig.json b/configs/RecyclingSettingConfig.json index cabe078..65ccf4f 100644 --- a/configs/RecyclingSettingConfig.json +++ b/configs/RecyclingSettingConfig.json @@ -199,6 +199,17 @@ "18": { "idx": 18, "id": 1, + "tips": "回收背包中所有天之王者装备", + "name": "天之王者", + "showQuality": 5, + "optionid": 62, + "itemlevel": 115, + "title": "装备回收", + "value": 0 + }, + "19": { + "idx": 19, + "id": 1, "tips": "回收背包中所有天龙装备", "name": "天龙装备", "showQuality": 5, @@ -207,16 +218,38 @@ "title": "装备回收", "value": 0 }, - "19": { - "idx": 19, + "20": { + "idx": 20, "id": 1, - "tips": "回收背包中所有传奇装备", - "name": "传奇装备", + "tips": "回收背包中所有天之天龙装备", + "name": "天之天龙", + "showQuality": 5, + "optionid": 63, + "itemlevel": 119, + "title": "装备回收", + "value": 0 + }, + "21": { + "idx": 21, + "id": 1, + "tips": "回收背包中所有金牛装备和传奇装备", + "name": "金牛装备", "showQuality": 5, "optionid": 64, "itemlevel": 116, "title": "装备回收", "value": 0 + }, + "22": { + "idx": 22, + "id": 1, + "tips": "回收背包中所有天之传奇装备和金牛炎装备", + "name": "传奇装备", + "showQuality": 5, + "optionid": 64, + "itemlevel": 117, + "title": "装备回收", + "value": 0 } }, "2": { diff --git a/configs/StdItems.json b/configs/StdItems.json index 3e06d1b..d49c096 100644 --- a/configs/StdItems.json +++ b/configs/StdItems.json @@ -69872,7 +69872,7 @@ "colGroup": 0, "forcetips": 0, "dealPrice": 10, - "itemlevel": 119, + "itemlevel": 116, "packageType": 1, "recordLog": 1, "itemlvl": 3, @@ -69950,7 +69950,7 @@ "colGroup": 0, "forcetips": 0, "dealPrice": 10, - "itemlevel": 119, + "itemlevel": 116, "packageType": 1, "recordLog": 1, "itemlvl": 3, @@ -70024,7 +70024,7 @@ "colGroup": 0, "forcetips": 0, "dealPrice": 10, - "itemlevel": 119, + "itemlevel": 116, "packageType": 1, "recordLog": 1, "itemlvl": 3, @@ -70098,7 +70098,7 @@ "colGroup": 0, "forcetips": 0, "dealPrice": 10, - "itemlevel": 119, + "itemlevel": 116, "packageType": 1, "recordLog": 1, "itemlvl": 3, @@ -74740,7 +74740,7 @@ "colGroup": 0, "forcetips": 0, "dealPrice": 10, - "itemlevel": 119, + "itemlevel": 117, "packageType": 1, "recordLog": 1, "itemlvl": 3, @@ -74818,7 +74818,7 @@ "colGroup": 0, "forcetips": 0, "dealPrice": 10, - "itemlevel": 119, + "itemlevel": 117, "packageType": 1, "recordLog": 1, "itemlvl": 3, @@ -74896,7 +74896,7 @@ "colGroup": 0, "forcetips": 0, "dealPrice": 10, - "itemlevel": 119, + "itemlevel": 117, "packageType": 1, "recordLog": 1, "itemlvl": 3, @@ -75002,7 +75002,7 @@ "colGroup": 0, "forcetips": 0, "dealPrice": 10, - "itemlevel": 119, + "itemlevel": 117, "packageType": 1, "recordLog": 1, "itemlvl": 3, diff --git a/json2lua.js b/json2lua.js index 558d00e..8d29fc0 100644 --- a/json2lua.js +++ b/json2lua.js @@ -42,7 +42,7 @@ const start = () => { const files = fs.readdirSync(folderPath); // 过滤出所有的 JSON 文件 - const jsonFiles = files.filter(file => path.extname(file) === '.json').filter(file => ["StdItems","ItemMergeConfig","MergeConfig","MergeTotal"].map(e => `${e}.json`).includes(file)); + const jsonFiles = files.filter(file => path.extname(file) === '.json').filter(file => ["StdItems","ItemMergeConfig","MergeConfig","MergeTotal","RecyclingSettingConfig"].map(e => `${e}.json`).includes(file)); jsonFiles.forEach(file => { const json = JSON.parse(fs.readFileSync(path.join(folderPath, file), 'utf8')) const filename = path.basename(file, path.extname(file));