perf: 检测自动爆裂流程优化

This commit is contained in:
1204244136 2025-06-18 13:40:13 +08:00
parent 7e6c73367f
commit 602698dbd5
1 changed files with 3 additions and 4 deletions

View File

@ -1489,11 +1489,10 @@ BattleSettlement(Screenshot := false) {
checkend := 0 checkend := 0
checkred := 0 checkred := 0
AddLog("等待战斗结算") AddLog("等待战斗结算")
Sleep 10000
; 检测自动战斗和爆裂
CheckAuto
while true { while true {
; 检测自动战斗和爆裂
if (A_Index = 20) {
CheckAuto
}
if (ok := FindText(&X, &Y, NikkeX, NikkeY, NikkeX + NikkeW, NikkeY + NikkeH, 0.2 * PicTolerance, 0.2 * PicTolerance, FindText().PicLib("TAB的图标"), , 0, , , , , TrueRatio, TrueRatio)) { if (ok := FindText(&X, &Y, NikkeX, NikkeY, NikkeX + NikkeW, NikkeY + NikkeH, 0.2 * PicTolerance, 0.2 * PicTolerance, FindText().PicLib("TAB的图标"), , 0, , , , , TrueRatio, TrueRatio)) {
checkend := checkend + 1 checkend := checkend + 1
;AddLog("TAB已命中共" checkend "次") ;AddLog("TAB已命中共" checkend "次")