mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-27 02:27:12 +00:00
Fix: Stamina was used in ornament
This commit is contained in:
parent
4485a8f891
commit
f67d27d450
@ -126,12 +126,16 @@ class OrnamentCombat(Dungeon, RouteLoader, DungeonState):
|
|||||||
Pages:
|
Pages:
|
||||||
in: COMBAT_PREPARE or COMBAT_REPEAT
|
in: COMBAT_PREPARE or COMBAT_REPEAT
|
||||||
"""
|
"""
|
||||||
|
logger.info(f'Ornament_UseStamina={self.config.Ornament_UseStamina}, '
|
||||||
|
f'DungeonDouble.rogue={self.config.stored.DungeonDouble.rogue}')
|
||||||
before = self.get_equivalent_stamina()
|
before = self.get_equivalent_stamina()
|
||||||
|
logger.info(f'equivalent_stamina: {before}')
|
||||||
|
|
||||||
after = before
|
after = before
|
||||||
for _ in range(3):
|
for _ in range(3):
|
||||||
self.update_stamina_status()
|
self.update_stamina_status()
|
||||||
after = self.get_equivalent_stamina()
|
after = self.get_equivalent_stamina()
|
||||||
|
logger.info(f'equivalent_stamina: {after}')
|
||||||
if expect_reduce:
|
if expect_reduce:
|
||||||
if before > after:
|
if before > after:
|
||||||
break
|
break
|
||||||
@ -140,6 +144,13 @@ class OrnamentCombat(Dungeon, RouteLoader, DungeonState):
|
|||||||
|
|
||||||
return after
|
return after
|
||||||
|
|
||||||
|
def _try_get_more_trablaize_power(self, cost):
|
||||||
|
if self.config.Ornament_UseStamina or self.config.stored.DungeonDouble.rogue > 0:
|
||||||
|
return super()._try_get_more_trablaize_power(cost)
|
||||||
|
else:
|
||||||
|
logger.info('Skip _try_get_more_trablaize_power')
|
||||||
|
return False
|
||||||
|
|
||||||
def is_trailblaze_power_exhausted(self):
|
def is_trailblaze_power_exhausted(self):
|
||||||
flag = self.get_equivalent_stamina() < self.combat_wave_cost
|
flag = self.get_equivalent_stamina() < self.combat_wave_cost
|
||||||
logger.attr('TrailblazePowerExhausted', flag)
|
logger.attr('TrailblazePowerExhausted', flag)
|
||||||
|
Loading…
Reference in New Issue
Block a user