feat(batchSetting): 更新批量设置脚本并调整装备属性
- 修改了 batchSetting.js 脚本,更新了配置参数和生成逻辑 - 调整了 StdItems.json 中多件装备的属性,包括法师、道士和战士的传说级武器 - 优化了装备描述和效果,提高了部分装备的攻击力和防御力
This commit is contained in:
104
batchSetting.js
104
batchSetting.js
@@ -1,59 +1,57 @@
|
|||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const key = "SpecialRing.config"
|
const key = "UpstarConfig"
|
||||||
const values = [71, 100, 500] // 登记,伤害加倍,元宝花费
|
const values = [0, 1387, 10, 500, 10000, 5, 0] // 等级,物品ID,属性调整,元宝花费,升级概率
|
||||||
const interval = [1, 50, 50]
|
const interval = [1, 0, 15, 50, -450, 10, 1]
|
||||||
const num = 130
|
const num = 21
|
||||||
const start = () => {
|
const start = () => {
|
||||||
const template = `"S1": {
|
const template = `"S1": {
|
||||||
"attr": [
|
"consume": [
|
||||||
{
|
{
|
||||||
"value": S2,
|
"id": 4,
|
||||||
"type": 75
|
"type": 4,
|
||||||
},
|
"count": S4
|
||||||
{
|
},
|
||||||
"value": 585,
|
{
|
||||||
"type": 76
|
"id": 845,
|
||||||
},
|
"type": 0,
|
||||||
{
|
"count": S6
|
||||||
"value": 1115,
|
},
|
||||||
"type": 77
|
{
|
||||||
},
|
"id": 852,
|
||||||
{
|
"type": 0,
|
||||||
"value": 70,
|
"count": S3
|
||||||
"type": 21
|
}
|
||||||
},
|
],
|
||||||
{
|
"id": S2,
|
||||||
"value": 70,
|
"level": S1,
|
||||||
"type": 23
|
"attribute": [
|
||||||
},
|
{
|
||||||
{
|
"value": S7,
|
||||||
"value": 70,
|
"type": 9
|
||||||
"type": 25
|
},
|
||||||
},
|
{
|
||||||
{
|
"value": S7,
|
||||||
"value": 70,
|
"type": 11
|
||||||
"type": 27
|
},
|
||||||
},
|
{
|
||||||
{
|
"value": S7,
|
||||||
"value": 3400,
|
"type": 13
|
||||||
"type": 79
|
},
|
||||||
}
|
{
|
||||||
],
|
"value": S7,
|
||||||
"lv": S1,
|
"type": 15
|
||||||
"cost": [
|
},
|
||||||
{
|
{
|
||||||
"id": 1022,
|
"value": S7,
|
||||||
"type": 0,
|
"type": 17
|
||||||
"count": 1600
|
},
|
||||||
},
|
{
|
||||||
{
|
"value": S7,
|
||||||
"id":4,
|
"type": 19
|
||||||
"type": 4,
|
}
|
||||||
"count": S3
|
],
|
||||||
}
|
"rate": S5
|
||||||
],
|
}`
|
||||||
"pos": 5
|
|
||||||
}`
|
|
||||||
const getStr = (index) => {
|
const getStr = (index) => {
|
||||||
let str = template
|
let str = template
|
||||||
values.forEach((v, i) => {
|
values.forEach((v, i) => {
|
||||||
|
|||||||
@@ -44723,10 +44723,6 @@
|
|||||||
"forcetips": 0,
|
"forcetips": 0,
|
||||||
"suggVocation": 0,
|
"suggVocation": 0,
|
||||||
"staitcAttrs": [
|
"staitcAttrs": [
|
||||||
{
|
|
||||||
"value": 810,
|
|
||||||
"type": 5
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"value": 120,
|
"value": 120,
|
||||||
"type": 9
|
"type": 9
|
||||||
@@ -44786,23 +44782,8 @@
|
|||||||
{
|
{
|
||||||
"value": 3000,
|
"value": 3000,
|
||||||
"type": 84
|
"type": 84
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 99999,
|
|
||||||
"type": 47
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 6000,
|
|
||||||
"type": 95
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 6000,
|
|
||||||
"type": 97
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": 6000,
|
|
||||||
"type": 99
|
|
||||||
}
|
}
|
||||||
|
|
||||||
],
|
],
|
||||||
"dealPrice": 10,
|
"dealPrice": 10,
|
||||||
"colGroup": 0,
|
"colGroup": 0,
|
||||||
@@ -75366,7 +75347,7 @@
|
|||||||
},
|
},
|
||||||
"1384": {
|
"1384": {
|
||||||
"dup": 0,
|
"dup": 0,
|
||||||
"imgeff": 52,
|
"imgeff": 28,
|
||||||
"staitcAttrs": [
|
"staitcAttrs": [
|
||||||
{
|
{
|
||||||
"value": 388,
|
"value": 388,
|
||||||
@@ -75393,7 +75374,7 @@
|
|||||||
"type": 83
|
"type": 83
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": 10000,
|
"value": 20000,
|
||||||
"type": 75
|
"type": 75
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -75444,7 +75425,7 @@
|
|||||||
},
|
},
|
||||||
"1385": {
|
"1385": {
|
||||||
"dup": 0,
|
"dup": 0,
|
||||||
"imgeff": 51,
|
"imgeff": 48,
|
||||||
"staitcAttrs": [
|
"staitcAttrs": [
|
||||||
{
|
{
|
||||||
"value": 388,
|
"value": 388,
|
||||||
@@ -75471,7 +75452,7 @@
|
|||||||
"type": 83
|
"type": 83
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": 10000,
|
"value": 12500,
|
||||||
"type": 75
|
"type": 75
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -75484,7 +75465,7 @@
|
|||||||
"cdTime": 0,
|
"cdTime": 0,
|
||||||
"icon": 13317,
|
"icon": 13317,
|
||||||
"recoverid": 150017,
|
"recoverid": 150017,
|
||||||
"desc": "法师传说级武器,霜华冷冽,斩尽妖邪",
|
"desc": "法师传说级武器,霜华其名取意“朝光浮烧夜,霜华浄碧空。”",
|
||||||
"name": "霜华",
|
"name": "霜华",
|
||||||
"trade": 1,
|
"trade": 1,
|
||||||
"shape": 48,
|
"shape": 48,
|
||||||
@@ -75522,7 +75503,7 @@
|
|||||||
},
|
},
|
||||||
"1386": {
|
"1386": {
|
||||||
"dup": 0,
|
"dup": 0,
|
||||||
"imgeff": 50,
|
"imgeff": 30,
|
||||||
"staitcAttrs": [
|
"staitcAttrs": [
|
||||||
{
|
{
|
||||||
"value": 388,
|
"value": 388,
|
||||||
@@ -75549,7 +75530,7 @@
|
|||||||
"type": 83
|
"type": 83
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"value": 10000,
|
"value": 15000,
|
||||||
"type": 75
|
"type": 75
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -75562,8 +75543,8 @@
|
|||||||
"cdTime": 0,
|
"cdTime": 0,
|
||||||
"icon": 10031,
|
"icon": 10031,
|
||||||
"recoverid": 150017,
|
"recoverid": 150017,
|
||||||
"desc": "道士传说级武器,玄清一现,清辉如昼",
|
"desc": "道士传说级武器,不争其名取意“夫唯不争,故天下莫能与之争。 --《道德经》”",
|
||||||
"name": "玄清",
|
"name": "不争",
|
||||||
"trade": 1,
|
"trade": 1,
|
||||||
"shape": 30,
|
"shape": 30,
|
||||||
"denyDestroy": 1,
|
"denyDestroy": 1,
|
||||||
@@ -75600,7 +75581,7 @@
|
|||||||
},
|
},
|
||||||
"1387": {
|
"1387": {
|
||||||
"dup": 0,
|
"dup": 0,
|
||||||
"imgeff": 34,
|
"imgeff": 27,
|
||||||
"staitcAttrs": [
|
"staitcAttrs": [
|
||||||
{
|
{
|
||||||
"value": 12500,
|
"value": 12500,
|
||||||
@@ -75633,6 +75614,22 @@
|
|||||||
{
|
{
|
||||||
"value": 3000,
|
"value": 3000,
|
||||||
"type": 84
|
"type": 84
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": 20258,
|
||||||
|
"type": 47
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": 6000,
|
||||||
|
"type": 95
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": 6000,
|
||||||
|
"type": 97
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": 6000,
|
||||||
|
"type": 99
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"conds": [
|
"conds": [
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -42,7 +42,7 @@ const start = () => {
|
|||||||
const files = fs.readdirSync(folderPath);
|
const files = fs.readdirSync(folderPath);
|
||||||
|
|
||||||
// 过滤出所有的 JSON 文件
|
// 过滤出所有的 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 => {
|
jsonFiles.forEach(file => {
|
||||||
const json = JSON.parse(fs.readFileSync(path.join(folderPath, file), 'utf8'))
|
const json = JSON.parse(fs.readFileSync(path.join(folderPath, file), 'utf8'))
|
||||||
const filename = path.basename(file, path.extname(file));
|
const filename = path.basename(file, path.extname(file));
|
||||||
|
|||||||
Reference in New Issue
Block a user