original_docstring: Method to run the combat cycle.
          
docstring: Method to run the combat cycle.
docstring_tokens: Method to run the combat cycle .
code: def run_combat_cycle(self):
          """Method to run the combat cycle.
          """
          if self.modules['combat']:
              result = self.modules['combat'].combat_logic_wrapper()
  
              if result == 1 or result == 2:
                  # if boss is defeated or the number of requested fights is achieved
                  Logger.log_msg("Completed combat cycle.")
                  self.print_stats_check = True
              if result == 3:
                  # if morale is too low
                  Logger.log_warning("Ships morale is too low, entering standby mode for {} hour/s.".format(self.config.combat['low_mood_sleep_time']))
                  self.next_combat = datetime.now() + timedelta(hours=self.config.combat['low_mood_sleep_time'])
                  self.print_stats_check = False
              if result == 4:
                  # if dock is full
                  Logger.log_warning("Dock is full, need to retire/enhance.")
                  Logger.log_error("Retirement and Enhancement aren't enabled or both failed to exectute their task, exiting.")
                  sys.exit()
              if result == 5:
                  Logger.log_warning("Failed to defeat enemy.")
                  self.print_stats_check = False
          else:
              self.next_combat = 0
code_tokens: def run_combat_cycle ( self ) : if self . modules [ 'combat' ] : result = self . modules [ 'combat' ] . combat_logic_wrapper ( ) if result == 1 or result == 2 : Logger . log_msg ( "Completed combat cycle." ) self . print_stats_check = True if result == 3 : Logger . log_warning ( "Ships morale is too low, entering standby mode for {} hour/s." . format ( self . config . combat [ 'low_mood_sleep_time' ] ) ) self . next_combat = datetime . now ( ) + timedelta ( hours = self . config . combat [ 'low_mood_sleep_time' ] ) self . print_stats_check = False if result == 4 : Logger . log_warning ( "Dock is full, need to retire/enhance." ) Logger . log_error ( "Retirement and Enhancement aren't enabled or both failed to exectute their task, exiting." ) sys . exit ( ) if result == 5 : Logger . log_warning ( "Failed to defeat enemy." ) self . print_stats_check = False else : self . next_combat = 0
short_docstring: Method to run the combat cycle.
short_docstring_tokens: Method to run the combat cycle .
comment: """Method to run the combat cycle.
          """$SEP$# if boss is defeated or the number of requested fights is achieved$SEP$# if morale is too low$SEP$# if dock is full