|
@@ -811,6 +811,51 @@ class task_waitTime(dongri_task):
|
|
def run(self):
|
|
def run(self):
|
|
myTimeSleep(300)
|
|
myTimeSleep(300)
|
|
|
|
|
|
|
|
+class task_check_Research(dongri_task):
|
|
|
|
+ def __init__(self):
|
|
|
|
+ super().__init__(f"检查研究")
|
|
|
|
+ def run(self):
|
|
|
|
+ basic_operate.go_town()
|
|
|
|
+ if waitClickImg_noWait_withBool(train_img.quick_panel, 2, 1) == False:
|
|
|
|
+ return False
|
|
|
|
+
|
|
|
|
+ if waitClickImg_noWait_withBool(check_img.pannel_research, 2, 1) == False:
|
|
|
|
+ return False
|
|
|
|
+
|
|
|
|
+ handRet, handPos = waitFindImg(check_img.hand, 2, 1)
|
|
|
|
+ if not handRet:
|
|
|
|
+ return False
|
|
|
|
+
|
|
|
|
+ detailRet, detailPos = waitFindImg((check_img.detail,check_img.detail2), 2, 1)
|
|
|
|
+ dstPos = [0, 0]
|
|
|
|
+ if not detailRet:
|
|
|
|
+ # 如果找不到详细信息,兵营之类的,需点中间
|
|
|
|
+ dstPos = [handPos[0] - 70, handPos[1] + 120]
|
|
|
|
+ else:
|
|
|
|
+ dstPos = [detailPos[0] + 70, detailPos[1] - 100]
|
|
|
|
+
|
|
|
|
+ tryTimes = 3
|
|
|
|
+
|
|
|
|
+ while tryTimes > 0:
|
|
|
|
+ tryTimes -= 1
|
|
|
|
+ myTimeSleep_big()
|
|
|
|
+ pcacc_mouse.click(dst_x=dstPos[0], dst_y=dstPos[1])
|
|
|
|
+
|
|
|
|
+ if waitClickImg_noWait_withBool(check_img.research, 2, 1):
|
|
|
|
+ break
|
|
|
|
+
|
|
|
|
+ if waitFindImg_withBool(check_img.research_speedup, 2, 1) == True:
|
|
|
|
+ return False
|
|
|
|
+
|
|
|
|
+ if waitClickImg_withBool([check_img.research_type1, check_img.research_type2], 2, 1) == False:
|
|
|
|
+ return False
|
|
|
|
+ if basic_operate.enter_auto_supply_resource(check_img.research_done) == False:
|
|
|
|
+ return False
|
|
|
|
+
|
|
|
|
+ waitClickImg_withBool([check_img.help, check_img.help2, check_img.help3], 2, 2)
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
class check_buildOrResearch(dongri_task):
|
|
class check_buildOrResearch(dongri_task):
|
|
def __init__(self):
|
|
def __init__(self):
|
|
super().__init__(f"检查建筑或研究")
|
|
super().__init__(f"检查建筑或研究")
|
|
@@ -1408,6 +1453,7 @@ class check_safe_collect(dongri_task):
|
|
|
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|
|
print(get_todo_time("巨熊行动"))
|
|
print(get_todo_time("巨熊行动"))
|
|
|
|
+ task_check_Research().run()
|
|
#save_game_screen()
|
|
#save_game_screen()
|
|
#basic_operate.get_line_num()
|
|
#basic_operate.get_line_num()
|
|
#task_cure(True, 85).run()
|
|
#task_cure(True, 85).run()
|
|
@@ -1416,7 +1462,7 @@ if __name__ == '__main__':
|
|
#task_gotoTree().run()
|
|
#task_gotoTree().run()
|
|
#task_fight_jina_only().run()
|
|
#task_fight_jina_only().run()
|
|
#task_checkConfilits().run()
|
|
#task_checkConfilits().run()
|
|
- task_getStrength().run()
|
|
|
|
|
|
+ #task_getStrength().run()
|
|
#task_checkActivities().run()
|
|
#task_checkActivities().run()
|
|
#task_checkMaster().run()
|
|
#task_checkMaster().run()
|
|
#basic_operate.get_line_num()
|
|
#basic_operate.get_line_num()
|