Skip to content

Commit

Permalink
#229 无消耗无人机跑单
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawnsdaddy committed Sep 16, 2023
1 parent d200fa3 commit 9b97551
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 38 deletions.
3 changes: 1 addition & 2 deletions arknights_mower/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def initialize(tasks, scheduler=None):
base_scheduler.operators = {}
plan1 = {}
plan_config = PlanConfig(plan['conf']['rest_in_full'],plan['conf']['exhaust_require'], plan['conf']['resting_priority'], ling_xi= plan['conf']['ling_xi'],
workaholic=plan['conf']['workaholic'],max_resting_count= plan['conf']['max_resting_count'], free_blacklist=conf['free_blacklist'])
workaholic=plan['conf']['workaholic'],max_resting_count= plan['conf']['max_resting_count'], free_blacklist=conf['free_blacklist'],resting_threshold=conf['resting_threshold'])
for key in plan[plan['default']]:
plan1[key] = [Room(obj["agent"],obj["group"],obj["replacement"]) for obj in plan[plan['default']][key]['plans']]
# 默认任务
Expand All @@ -137,7 +137,6 @@ def initialize(tasks, scheduler=None):
# 高效组心情低于 UpperLimit * 阈值 (向下取整)的时候才会会安排休息
base_scheduler.last_room = ''
logger.info('宿舍黑名单:' + str(plan_config.free_blacklist))
base_scheduler.resting_threshold = conf['resting_threshold']
base_scheduler.MAA = None
base_scheduler.email_config = {
'mail_enable': conf['mail_enable'],
Expand Down
Loading

0 comments on commit 9b97551

Please sign in to comment.