|
@@ -146,6 +146,7 @@ def restart_game():
|
|
|
isGameBegin = True
|
|
|
send_status("结束")
|
|
|
config = read_cfg()
|
|
|
+ print("config", config)
|
|
|
auto_task(config)
|
|
|
|
|
|
def auto_participate():
|
|
@@ -192,8 +193,8 @@ def add_auto_task(isMaxCollect, isSimple = False):
|
|
|
task_queue.appendleft(task_train(False))
|
|
|
if isSimple:
|
|
|
task_queue.appendleft(check_buildOrResearch())
|
|
|
- #else:
|
|
|
- # task_queue.appendleft(task_collect(collectType, isSimple))
|
|
|
+ else:
|
|
|
+ task_queue.appendleft(task_collect(collectType, isSimple))
|
|
|
task_queue.appendleft(task_checkStoreRoom())
|
|
|
if not isSimple:
|
|
|
task_queue.appendleft(task_checkConfilits())
|
|
@@ -239,7 +240,9 @@ def read_cfg():
|
|
|
@socketio.on('begin_auto')
|
|
|
def handle_auto(data):
|
|
|
write_cfg(data)
|
|
|
- auto_task(data)
|
|
|
+ config = read_cfg()
|
|
|
+ print("config", config)
|
|
|
+ auto_task(config)
|
|
|
|
|
|
def auto_task(data):
|
|
|
global autoTask
|