'use strict';
// 要更改的职业ID
let classId = 1;
/*
* 要更改的属性ID
*
* mhp 0
* mmp 1
* atk 2
* def 3
* mat 4
* mdf 5
* agi 6
* luk 7
*/
let paramId = 0;
function getParam(originalParam, lv) {
if (lv === 0) return originalParam;
return Math.floor(
// 在这里写下公式
-lv * lv + lv * 100
);
}
const fs = require('fs');
const path = require('path');
let dataPath = path.resolve(location.pathname.slice(1), '../data/Classes.json');
let data = require(dataPath);
let params = data[classId].params;
params[paramId] = params[paramId].map(getParam);
fs.writeFileSync(dataPath, JSON.stringify(data));
alert('设置成功,请重启MV以查看效果');
window.close();
'use strict';
// 要更改的职业ID
let classId = 1;
/*
* 要更改的属性ID
*
* mhp 0
* mmp 1
* atk 2
* def 3
* mat 4
* mdf 5
* agi 6
* luk 7
*/
let paramId = 0;
function getParam(originalParam, lv) {
if (lv === 0) return originalParam;
return Math.floor(
// 在这里写下公式
-lv * lv + lv * 100
);
}
const fs = require('fs');
const path = require('path');
let dataPath = path.resolve(location.pathname.slice(1), '../data/Classes.json');
let data = require(dataPath);
let params = data[classId].params;
params[paramId] = params[paramId].map(getParam);
fs.writeFileSync(dataPath, JSON.stringify(data));
alert('设置成功,请重启MV以查看效果');
window.close();