refactor(batchSetting): 重构批量设置脚本
- 将单个配置文件改为模块化设计,便于维护和扩展 - 新增 UpstarConfig.js 文件,作为独立的配置模块 - 重构 batchSetting.js 文件,使其支持多配置文件的批量处理 - 优化代码结构,提高可读性和可维护性
This commit is contained in:
55
batchTemples/UpstarConfig.js
Normal file
55
batchTemples/UpstarConfig.js
Normal file
@@ -0,0 +1,55 @@
|
||||
module.exports = {
|
||||
key: "UpstarConfig",
|
||||
desc: "等级,物品ID,属性调整,元宝花费,升级概率",
|
||||
values: [0, 1387, 10, 500, 10000, 5, 0],
|
||||
interval: [1, 0, 15, 50, -450, 10, 1],
|
||||
num: 21,
|
||||
template: `"S1": {
|
||||
"consume": [
|
||||
{
|
||||
"id": 4,
|
||||
"type": 4,
|
||||
"count": S4
|
||||
},
|
||||
{
|
||||
"id": 845,
|
||||
"type": 0,
|
||||
"count": S6
|
||||
},
|
||||
{
|
||||
"id": 852,
|
||||
"type": 0,
|
||||
"count": S3
|
||||
}
|
||||
],
|
||||
"id": S2,
|
||||
"level": S1,
|
||||
"attribute": [
|
||||
{
|
||||
"value": S7,
|
||||
"type": 9
|
||||
},
|
||||
{
|
||||
"value": S7,
|
||||
"type": 11
|
||||
},
|
||||
{
|
||||
"value": S7,
|
||||
"type": 13
|
||||
},
|
||||
{
|
||||
"value": S7,
|
||||
"type": 15
|
||||
},
|
||||
{
|
||||
"value": S7,
|
||||
"type": 17
|
||||
},
|
||||
{
|
||||
"value": S7,
|
||||
"type": 19
|
||||
}
|
||||
],
|
||||
"rate": S5
|
||||
}`,
|
||||
};
|
||||
Reference in New Issue
Block a user