mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 22:08:20 +08:00
Fix: TaskBalancer malfunctioning caused by ocr failure (#2295)
* Fix: Cannot OCR coin when using auto search(#2289) * Merge TaskBalancer into StopCondition * Add: Avoid zero OCR in coin * Restruct function due to operator precedence * Merge bug_fix into coin_autocheck * Fix: Dumb error caused by no parameter * Fix: Minor bugs
This commit is contained in:
@@ -100,6 +100,17 @@ class CampaignRun(CampaignEvent):
|
||||
if oil_check and self.campaign.event_pt_limit_triggered():
|
||||
logger.hr('Triggered stop condition: Event PT limit')
|
||||
return True
|
||||
# Auto search TaskBalancer
|
||||
if self.config.TaskBalancer_Enable and self.campaign.auto_search_coin_limit_triggered:
|
||||
logger.hr('Triggered stop condition: Auto search coin limit')
|
||||
self.handle_task_balancer()
|
||||
return True
|
||||
# TaskBalancer
|
||||
if oil_check and self.run_count >= 1:
|
||||
if self.config.TaskBalancer_Enable and self.triggered_task_balancer():
|
||||
logger.hr('Triggered stop condition: Coin limit')
|
||||
self.handle_task_balancer()
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
@@ -310,9 +321,6 @@ class CampaignRun(CampaignEvent):
|
||||
logger.hr('Triggered one-time stage limit')
|
||||
self.campaign.handle_map_stop()
|
||||
break
|
||||
# Task balancer
|
||||
if self.run_count >= 1:
|
||||
self.handle_task_balancer()
|
||||
# Loop stages
|
||||
if self.is_stage_loop:
|
||||
if self.run_count >= 1:
|
||||
|
||||
Reference in New Issue
Block a user