Skip to content

Commit

Permalink
Maa信用作战总开关
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoZuohong committed Jul 16, 2023
1 parent 8fbb4d5 commit 7d97f9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions arknights_mower/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def initialize(tasks, scheduler=None):
maa_config['conn_preset'] = conf['maa_conn_preset']
maa_config['touch_option'] = conf['maa_touch_option']
maa_config['mall_ignore_when_full'] = conf['maa_mall_ignore_blacklist_when_full']
maa_config['credit_fight'] = conf['maa_credit_fight']
base_scheduler.maa_config = maa_config
base_scheduler.ADB_CONNECT = config.ADB_CONNECT[0]
base_scheduler.error = False
Expand Down
2 changes: 1 addition & 1 deletion arknights_mower/solvers/base_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,7 @@ def append_maa_task(self, type):
'shopping': True,
'buy_first': self.maa_config['buy_first'].split(","),
'blacklist': self.maa_config['blacklist'].split(","),
'credit_fight': '' not in self.stages and self.credit_fight is None,
'credit_fight': self.maa_config['credit_fight'] and '' not in self.stages and self.credit_fight is None,
"force_shopping_if_credit_full": self.maa_config['mall_ignore_when_full']
})

Expand Down
1 change: 1 addition & 0 deletions arknights_mower/templates/conf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@ resting_threshold: 0.5
theme: light
maa_conn_preset: General
maa_touch_option: maatouch
maa_credit_fight: true

0 comments on commit 7d97f9f

Please sign in to comment.