feat(batchSetting): 更新批量设置脚本并调整装备属性

- 修改了 batchSetting.js 脚本,更新了配置参数和生成逻辑
- 调整了 StdItems.json 中多件装备的属性,包括法师、道士和战士的传说级武器
- 优化了装备描述和效果,提高了部分装备的攻击力和防御力
This commit is contained in:
aixianling
2025-01-16 14:31:15 +08:00
parent 2f42b9bb1a
commit fa671eb284
4 changed files with 4120 additions and 85 deletions

View File

@@ -1,59 +1,57 @@
const fs = require('fs')
const key = "SpecialRing.config"
const values = [71, 100, 500] // 登记,伤害加倍,元宝花费
const interval = [1, 50, 50]
const num = 130
const key = "UpstarConfig"
const values = [0, 1387, 10, 500, 10000, 5, 0] // 等级,物品ID,属性调整,元宝花费,升级概率
const interval = [1, 0, 15, 50, -450, 10, 1]
const num = 21
const start = () => {
const template = `"S1": {
"attr": [
{
"value": S2,
"type": 75
},
{
"value": 585,
"type": 76
},
{
"value": 1115,
"type": 77
},
{
"value": 70,
"type": 21
},
{
"value": 70,
"type": 23
},
{
"value": 70,
"type": 25
},
{
"value": 70,
"type": 27
},
{
"value": 3400,
"type": 79
}
],
"lv": S1,
"cost": [
{
"id": 1022,
"type": 0,
"count": 1600
},
{
"id":4,
"type": 4,
"count": S3
}
],
"pos": 5
}`
"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
}`
const getStr = (index) => {
let str = template
values.forEach((v, i) => {