Chore: Log battle UI theme

This commit is contained in:
LmeSzinc 2024-12-27 02:35:54 +08:00
parent 76fcfdf42a
commit 62b3bd1390
6 changed files with 21 additions and 7 deletions

View File

@ -237,7 +237,9 @@ class AutoSearchCombat(MapOperation, Combat, CampaignStatus):
# End
if self.is_in_auto_search_menu() or self._handle_auto_search_menu_missing():
raise CampaignEnd
if self.is_combat_executing():
pause = self.is_combat_executing()
if pause:
logger.attr('BattleUI', pause)
break
logger.info('Auto Search combat execute')

View File

@ -183,7 +183,9 @@ class Combat(Level, HPBalancer, Retirement, SubmarineCall, CombatAuto, CombatMan
interval_set = True
# End
if self.is_combat_executing():
pause = self.is_combat_executing()
if pause:
logger.attr('BattleUI', pause)
if emotion_reduce:
self.emotion.reduce(fleet_index)
break

View File

@ -29,7 +29,9 @@ class ExerciseCombat(HpDaemon, OpponentChoose, ExerciseEquipment, Combat):
continue
# End
if self.is_combat_executing():
pause = self.is_combat_executing()
if pause:
logger.attr('BattleUI', pause)
break
def _combat_execute(self):

View File

@ -477,7 +477,9 @@ class GuildOperations(GuildBase):
continue
# End
if az.is_combat_executing():
pause = az.is_combat_executing()
if pause:
logger.attr('BattleUI', pause)
return True
def _guild_operations_boss_combat(self):

View File

@ -76,7 +76,9 @@ class Combat(Combat_, MapEventHandler):
continue
# End
if self.is_combat_executing():
pause = self.is_combat_executing()
if pause:
logger.attr('BattleUI', pause)
# if emotion_reduce:
# self.emotion.reduce(fleet_index)
break
@ -235,7 +237,9 @@ class Combat(Combat_, MapEventHandler):
# End
if self.handle_os_auto_search_map_option(drop=drop):
break
if self.is_combat_executing():
pause = self.is_combat_executing()
if pause:
logger.attr('BattleUI', pause)
break
if self.is_in_map():
break

View File

@ -238,7 +238,9 @@ class Raid(MapOperation, RaidCombat, CampaignEvent):
continue
# End
if self.is_combat_executing():
pause = self.is_combat_executing()
if pause:
logger.attr('BattleUI', pause)
if emotion_reduce:
self.emotion.reduce(fleet_index)
break