mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Opt: early stop in shipyard_run
This commit is contained in:
parent
ff8bb12667
commit
1c1ea82b31
@ -180,7 +180,7 @@ class RewardShipyard(ShipyardUI):
|
|||||||
pages. If no transition took place,
|
pages. If no transition took place,
|
||||||
then did not run
|
then did not run
|
||||||
"""
|
"""
|
||||||
if count <= 0:
|
if index <= 0 or count <= 0:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# Gold difficult to Ocr in page_shipyard
|
# Gold difficult to Ocr in page_shipyard
|
||||||
@ -221,7 +221,8 @@ class RewardShipyard(ShipyardUI):
|
|||||||
in: Any page
|
in: Any page
|
||||||
out: page_shipyard
|
out: page_shipyard
|
||||||
"""
|
"""
|
||||||
if self.config.Shipyard_BuyAmount <= 0 and self.config.ShipyardDr_BuyAmount <= 0:
|
if (self.config.Shipyard_ShipIndex == 0 and self.config.ShipyardDr_ShipIndex == 0) or \
|
||||||
|
(self.config.Shipyard_BuyAmount <= 0 and self.config.ShipyardDr_BuyAmount <= 0):
|
||||||
self.config.Scheduler_Enable = False
|
self.config.Scheduler_Enable = False
|
||||||
self.config.task_stop()
|
self.config.task_stop()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user