From 3de79cc1fa17e49b178218ffbbf4e9ddf4bccd55 Mon Sep 17 00:00:00 2001 From: Kubbo <390378816@qq.com> Date: Tue, 11 Feb 2025 17:11:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ShopConfig):=20=E7=A7=BB=E9=99=A4=20Sh?= =?UTF-8?q?opConfig=20=E4=B8=AD=E7=9A=84=E5=86=97=E4=BD=99=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除了 ShopConfig 中的多个冗余 shopid 配置项 - 优化了 ShopConfig 的结构,提高了配置的可读性和维护性 - 同时更新了 lua2json 工具的配置,以适应新的 ShopConfig 结构 --- configs/ShopConfig.json | 84 ----------------------------------------- tools/lua2json.js | 3 +- 2 files changed, 2 insertions(+), 85 deletions(-) diff --git a/configs/ShopConfig.json b/configs/ShopConfig.json index 926bc56..820d866 100644 --- a/configs/ShopConfig.json +++ b/configs/ShopConfig.json @@ -240,90 +240,6 @@ } }, "2": { - "5": { - "batchbuy": 1, - "reincarnationlimit": 0, - "shopid": 5, - "shoptype": 1, - "Maxbatchbuy": 999, - "Tabshop": 2, - "shop": { - "id": 459, - "type": 0, - "count": 1 - }, - "buytype": [], - "daylimit": 0, - "levellimit": 1, - "price": { - "id": 4, - "type": 4, - "count": 33 - } - }, - "6": { - "batchbuy": 1, - "reincarnationlimit": 0, - "shopid": 6, - "shoptype": 1, - "Maxbatchbuy": 999, - "Tabshop": 2, - "shop": { - "id": 460, - "type": 0, - "count": 1 - }, - "buytype": [], - "daylimit": 0, - "levellimit": 1, - "price": { - "id": 4, - "type": 4, - "count": 66 - } - }, - "7": { - "batchbuy": 1, - "reincarnationlimit": 0, - "shopid": 7, - "shoptype": 1, - "Maxbatchbuy": 999, - "Tabshop": 2, - "shop": { - "id": 461, - "type": 0, - "count": 1 - }, - "buytype": [], - "daylimit": 0, - "levellimit": 1, - "price": { - "id": 4, - "type": 4, - "count": 88 - } - }, - "8": { - "batchbuy": 1, - "reincarnationlimit": 0, - "shopid": 8, - "shoptype": 1, - "Maxbatchbuy": 999, - "Tabshop": 2, - "shop": { - "id": 462, - "type": 0, - "count": 1 - }, - "buytype": [], - "daylimit": 0, - "levellimit": 1, - "price": { - "id": 4, - "type": 4, - "count": 166 - } - }, "9": { "batchbuy": 1, "reincarnationlimit": 0, diff --git a/tools/lua2json.js b/tools/lua2json.js index b56e93c..6b6a25a 100644 --- a/tools/lua2json.js +++ b/tools/lua2json.js @@ -6,7 +6,8 @@ const folderPath = "./luaConfigs"; const scope = [ // "MergeTotal", - "ActivitiesConf", + // "ActivitiesConf", + "ShopConfig" ].filter(Boolean); const start = () => {