mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-25 04:59:52 +08:00
fix(AutoPlan): 解决地脉任务参数解析问题
- 移除地脉任务的临时禁用代码 - 修复参数传递中的类型转换问题,使用 parseInteger 处理计数参数 - 更新 BGI 版本号从 0.57.0 到 0.57.2 - 添加参数对象的构造注释代码作为备选实现方案
This commit is contained in:
@@ -136,11 +136,16 @@ async function autoLeyLineOutcrop(autoLeyLineOutcrop) {
|
||||
|
||||
|
||||
log.info(`{0}`,"开始执行地脉任务")
|
||||
if (true) {
|
||||
log.warn("地脉 暂不支持")
|
||||
return
|
||||
}
|
||||
let param = new AutoLeyLineOutcropParam(autoLeyLineOutcrop.count, autoLeyLineOutcrop.country, autoLeyLineOutcrop.leyLineOutcropType);
|
||||
// if (true) {
|
||||
// log.warn("地脉 暂不支持")
|
||||
// return
|
||||
// }
|
||||
let param = new AutoLeyLineOutcropParam(parseInteger(autoLeyLineOutcrop.count+""), autoLeyLineOutcrop.country, autoLeyLineOutcrop.leyLineOutcropType);
|
||||
// let param = new AutoLeyLineOutcropParam();
|
||||
// param.count = parseInteger(autoLeyLineOutcrop.count+"");
|
||||
// param.country = autoLeyLineOutcrop.country;
|
||||
// param.leyLineOutcropType = autoLeyLineOutcrop.leyLineOutcropType;
|
||||
|
||||
param.useAdventurerHandbook = autoLeyLineOutcrop.useAdventurerHandbook;
|
||||
param.friendshipTeam = autoLeyLineOutcrop.friendshipTeam;
|
||||
param.team = autoLeyLineOutcrop.team;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"description": "",
|
||||
"settings_ui": "settings.json",
|
||||
"main": "main.js",
|
||||
"bgi_version": "0.57.0",
|
||||
"bgi_version": "0.57.2",
|
||||
"key": "oiJbmjU2R0NniiwiZxh",
|
||||
"authors": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user