mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: Exit to COMBAT_AGAIN if fuel exhausted
This commit is contained in:
parent
11cefadb71
commit
19157a4266
@ -147,6 +147,10 @@ class Fuel(UI):
|
||||
|
||||
Returns:
|
||||
bool: If used
|
||||
|
||||
Pages:
|
||||
in: COMBAT_AGAIN
|
||||
out: COMBAT_AGAIN
|
||||
"""
|
||||
limit = self.config.stored.TrailblazePower.FIXED_TOTAL
|
||||
use = (limit - current) // self.fuel_trailblaze_power
|
||||
@ -173,6 +177,7 @@ class Fuel(UI):
|
||||
has_fuel = True
|
||||
if not has_fuel and timeout.reached():
|
||||
logger.info("No fuel found")
|
||||
self._fuel_cancel()
|
||||
return False
|
||||
if self.appear_then_click(FUEL):
|
||||
has_fuel = True
|
||||
|
Loading…
Reference in New Issue
Block a user