|
1 | 1 | (async function () { |
2 | 2 |
|
3 | 3 | //初始化配置====================================================================================== |
4 | | - var BH = typeof settings.BH === 'string' && settings.BH.trim() !== '' ? settings.BH : "assets/bh.png"; |
| 4 | + var MATERIAL = typeof settings.MATERIAL === 'string' && settings.MATERIAL.trim() !== '' ? settings.MATERIAL : "assets/bh.png"; |
5 | 5 | var ZHIBIANYI = typeof settings.ZHIBIANY === 'string' && settings.ZHIBIANYI.trim() !== '' ? settings.ZHIBIANYI : "assets/zhibian.png"; |
6 | 6 | var actiontime = settings.actiontime != undefined && ~~settings.actiontime > 0 ? ~~settings.actiontime : 50; |
7 | 7 | var CHA = "assets/cha.png" |
@@ -126,7 +126,7 @@ async function deployTransformer(){ |
126 | 126 |
|
127 | 127 |
|
128 | 128 | /**====================================================================================== |
129 | | - * 游戏内“参量质变仪”的放入薄荷交互流程 |
| 129 | + * 游戏内“参量质变仪”的放入材料交互流程 |
130 | 130 | */ |
131 | 131 | async function insertMaterial(){ |
132 | 132 |
|
@@ -165,12 +165,12 @@ async function insertMaterial(){ |
165 | 165 | await leftButtonDown(); |
166 | 166 | await sleep(100); |
167 | 167 | await moveMouseTo(1287,161); |
168 | | - // 薄荷图片检测 |
| 168 | + // 质变材料图片检测 |
169 | 169 | let YOffset = 0; // Y轴偏移量,根据需要调整 |
170 | 170 | const maxRetries = 20; // 最大重试次数 |
171 | 171 | let retries = 0; // 当前重试次数 |
172 | 172 | while (retries < maxRetries) { |
173 | | - await imageRecognition(BH, 1, 0, 0); |
| 173 | + await imageRecognition(MATERIAL, 1, 0, 0); |
174 | 174 | if (result.found) { |
175 | 175 | await leftButtonUp(); |
176 | 176 | await sleep(500); |
@@ -245,12 +245,12 @@ async function executeAttack(){ |
245 | 245 | //开始执行质变仪流程============================================ |
246 | 246 | try { |
247 | 247 | if ((await deployTransformer())) {//部署质变仪流程 |
248 | | - log.info("部署成功,准备放入薄荷!!"); |
| 248 | + log.info("部署成功,准备放入材料(默认薄荷)!!"); |
249 | 249 | } |
250 | | - if ((!await insertMaterial())) {//放入薄荷并开始质变流程 |
| 250 | + if ((!await insertMaterial())) {//放入材料并开始质变流程 |
251 | 251 | log.info("未找到布置的质变仪,可能已经放入材料,尝试进行攻击流程!!"); |
252 | 252 | }else{ |
253 | | - log.info("放入薄荷完成,开始质变!!"); |
| 253 | + log.info("放入材料完成,开始质变!!"); |
254 | 254 | } |
255 | 255 | if ((await executeAttack())) {//芭芭拉攻击指令流程 |
256 | 256 | log.info("质变执行完成,结束!!"); |
|
0 commit comments