|
@@ -332,8 +332,10 @@ def add_auto_task(isMaxCollect, isJina, isSimple = False, isAddStrengh = False,
|
|
|
task_queue.appendleft(task_cure(True, g_cureNum))
|
|
|
return
|
|
|
|
|
|
- if g_switch == False or get_rungame_type() == 0:
|
|
|
+ if g_switch == False:
|
|
|
task_queue.appendleft(task_checkActivities())
|
|
|
+ if get_rungame_type() == 0:
|
|
|
+ task_queue.appendleft(check_buildOrResearch())
|
|
|
# first run
|
|
|
if g_times % 3 == 1:
|
|
|
task_queue.appendleft(check_safe_collect())
|
|
@@ -556,7 +558,7 @@ def handle_auto(data):
|
|
|
auto_task(config)
|
|
|
|
|
|
def auto_task(data):
|
|
|
- global autoTask, g_cureNum,g_isRestart
|
|
|
+ global autoTask, g_cureNum,g_isRestart,g_switch
|
|
|
if data == None:
|
|
|
isMaxCollect = '4,3,2,1'
|
|
|
isSimple = False
|