mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 23:33:33 +08:00
Fix: Incompele gems_farming stop condition (#1524)
* Fix: Incompele gems_farming stop condition * Indentation fixed
This commit is contained in:
@@ -320,6 +320,7 @@ class GemsFarming(CampaignRun, Dock, EquipmentChange):
|
|||||||
|
|
||||||
while 1:
|
while 1:
|
||||||
self._trigger_lv32 = False
|
self._trigger_lv32 = False
|
||||||
|
is_limit = self.config.StopCondition_RunCount
|
||||||
|
|
||||||
try:
|
try:
|
||||||
super().run(name=name, folder=folder, total=total)
|
super().run(name=name, folder=folder, total=total)
|
||||||
@@ -337,6 +338,12 @@ class GemsFarming(CampaignRun, Dock, EquipmentChange):
|
|||||||
if self.config.GemsFarming_LowEmotionRetreat:
|
if self.config.GemsFarming_LowEmotionRetreat:
|
||||||
success = success and self.vanguard_change()
|
success = success and self.vanguard_change()
|
||||||
|
|
||||||
|
if is_limit and self.config.StopCondition_RunCount <= 0:
|
||||||
|
logger.hr('Triggered stop condition: Run count')
|
||||||
|
self.config.StopCondition_RunCount = 0
|
||||||
|
self.config.Scheduler_Enable = False
|
||||||
|
break
|
||||||
|
|
||||||
self._trigger_lv32 = False
|
self._trigger_lv32 = False
|
||||||
self._trigger_emotion = False
|
self._trigger_emotion = False
|
||||||
self.campaign.config.LV32_TRIGGERED = False
|
self.campaign.config.LV32_TRIGGERED = False
|
||||||
|
|||||||
Reference in New Issue
Block a user