mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Opt: Ignore obtain_frequent_check if combat will be reentered later
This commit is contained in:
parent
8fa0c47a96
commit
616f072a2b
@ -232,6 +232,13 @@ class Combat(CombatInteract, CombatPrepare, CombatState, CombatTeam, CombatSuppo
|
||||
# Planner
|
||||
logger.attr('obtain_frequent_check', self.obtain_frequent_check)
|
||||
if self.obtain_frequent_check:
|
||||
if self.config.stored.TrailblazePower.value >= self.combat_wave_cost \
|
||||
and (self.combat_wave_limit and self.combat_wave_done < self.combat_wave_limit):
|
||||
logger.info(f'Stall having some trailblaze power '
|
||||
f'but wave limit reached {self.combat_wave_done}/{self.combat_wave_limit}, '
|
||||
f'ignore obtain_frequent_check cause will reenter later')
|
||||
return False
|
||||
else:
|
||||
logger.info('Re-enter combat to check obtained items')
|
||||
return True
|
||||
# Stamina
|
||||
|
Loading…
Reference in New Issue
Block a user