feat(batchSetting): 更新批量设置脚本并调整装备属性
- 修改了 batchSetting.js 脚本,更新了配置参数和生成逻辑 - 调整了 StdItems.json 中多件装备的属性,包括法师、道士和战士的传说级武器 - 优化了装备描述和效果,提高了部分装备的攻击力和防御力
This commit is contained in:
@@ -1,58 +1,56 @@
|
||||
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": [
|
||||
"consume": [
|
||||
{
|
||||
"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,
|
||||
"id": 4,
|
||||
"type": 4,
|
||||
"count": S4
|
||||
},
|
||||
{
|
||||
"id": 845,
|
||||
"type": 0,
|
||||
"count": S6
|
||||
},
|
||||
{
|
||||
"id": 852,
|
||||
"type": 0,
|
||||
"count": S3
|
||||
}
|
||||
],
|
||||
"pos": 5
|
||||
"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
|
||||
|
||||
@@ -44723,10 +44723,6 @@
|
||||
"forcetips": 0,
|
||||
"suggVocation": 0,
|
||||
"staitcAttrs": [
|
||||
{
|
||||
"value": 810,
|
||||
"type": 5
|
||||
},
|
||||
{
|
||||
"value": 120,
|
||||
"type": 9
|
||||
@@ -44786,23 +44782,8 @@
|
||||
{
|
||||
"value": 3000,
|
||||
"type": 84
|
||||
},
|
||||
{
|
||||
"value": 99999,
|
||||
"type": 47
|
||||
},
|
||||
{
|
||||
"value": 6000,
|
||||
"type": 95
|
||||
},
|
||||
{
|
||||
"value": 6000,
|
||||
"type": 97
|
||||
},
|
||||
{
|
||||
"value": 6000,
|
||||
"type": 99
|
||||
}
|
||||
|
||||
],
|
||||
"dealPrice": 10,
|
||||
"colGroup": 0,
|
||||
@@ -75366,7 +75347,7 @@
|
||||
},
|
||||
"1384": {
|
||||
"dup": 0,
|
||||
"imgeff": 52,
|
||||
"imgeff": 28,
|
||||
"staitcAttrs": [
|
||||
{
|
||||
"value": 388,
|
||||
@@ -75393,7 +75374,7 @@
|
||||
"type": 83
|
||||
},
|
||||
{
|
||||
"value": 10000,
|
||||
"value": 20000,
|
||||
"type": 75
|
||||
},
|
||||
{
|
||||
@@ -75444,7 +75425,7 @@
|
||||
},
|
||||
"1385": {
|
||||
"dup": 0,
|
||||
"imgeff": 51,
|
||||
"imgeff": 48,
|
||||
"staitcAttrs": [
|
||||
{
|
||||
"value": 388,
|
||||
@@ -75471,7 +75452,7 @@
|
||||
"type": 83
|
||||
},
|
||||
{
|
||||
"value": 10000,
|
||||
"value": 12500,
|
||||
"type": 75
|
||||
},
|
||||
{
|
||||
@@ -75484,7 +75465,7 @@
|
||||
"cdTime": 0,
|
||||
"icon": 13317,
|
||||
"recoverid": 150017,
|
||||
"desc": "法师传说级武器,霜华冷冽,斩尽妖邪",
|
||||
"desc": "法师传说级武器,霜华其名取意“朝光浮烧夜,霜华浄碧空。”",
|
||||
"name": "霜华",
|
||||
"trade": 1,
|
||||
"shape": 48,
|
||||
@@ -75522,7 +75503,7 @@
|
||||
},
|
||||
"1386": {
|
||||
"dup": 0,
|
||||
"imgeff": 50,
|
||||
"imgeff": 30,
|
||||
"staitcAttrs": [
|
||||
{
|
||||
"value": 388,
|
||||
@@ -75549,7 +75530,7 @@
|
||||
"type": 83
|
||||
},
|
||||
{
|
||||
"value": 10000,
|
||||
"value": 15000,
|
||||
"type": 75
|
||||
},
|
||||
{
|
||||
@@ -75562,8 +75543,8 @@
|
||||
"cdTime": 0,
|
||||
"icon": 10031,
|
||||
"recoverid": 150017,
|
||||
"desc": "道士传说级武器,玄清一现,清辉如昼",
|
||||
"name": "玄清",
|
||||
"desc": "道士传说级武器,不争其名取意“夫唯不争,故天下莫能与之争。 --《道德经》”",
|
||||
"name": "不争",
|
||||
"trade": 1,
|
||||
"shape": 30,
|
||||
"denyDestroy": 1,
|
||||
@@ -75600,7 +75581,7 @@
|
||||
},
|
||||
"1387": {
|
||||
"dup": 0,
|
||||
"imgeff": 34,
|
||||
"imgeff": 27,
|
||||
"staitcAttrs": [
|
||||
{
|
||||
"value": 12500,
|
||||
@@ -75633,6 +75614,22 @@
|
||||
{
|
||||
"value": 3000,
|
||||
"type": 84
|
||||
},
|
||||
{
|
||||
"value": 20258,
|
||||
"type": 47
|
||||
},
|
||||
{
|
||||
"value": 6000,
|
||||
"type": 95
|
||||
},
|
||||
{
|
||||
"value": 6000,
|
||||
"type": 97
|
||||
},
|
||||
{
|
||||
"value": 6000,
|
||||
"type": 99
|
||||
}
|
||||
],
|
||||
"conds": [
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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","RecyclingSettingConfig","OfficeConfig"].map(e => `${e}.json`).includes(file));
|
||||
const jsonFiles = files.filter(file => path.extname(file) === '.json').filter(file => ["StdItems","ItemMergeConfig","MergeConfig","MergeTotal","RecyclingSettingConfig","UpstarConfig"].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));
|
||||
|
||||
Reference in New Issue
Block a user