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 # End
if self.is_in_auto_search_menu() or self._handle_auto_search_menu_missing(): if self.is_in_auto_search_menu() or self._handle_auto_search_menu_missing():
raise CampaignEnd raise CampaignEnd
if self.is_combat_executing(): pause = self.is_combat_executing()
if pause:
logger.attr('BattleUI', pause)
break break
logger.info('Auto Search combat execute') logger.info('Auto Search combat execute')

View File

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

View File

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

View File

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

View File

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

View File

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