Explorar o código

!2 add lifeTree function

pcacc hai 4 meses
pai
achega
e046c90ecd
Modificáronse 5 ficheiros con 24 adicións e 4 borrados
  1. 3 0
      app_dongri.py
  2. 1 1
      daily.json
  3. BIN=BIN
      dongri_img/check/life_tree.png
  4. 2 0
      dongri_pic.py
  5. 18 3
      dongri_task.py

+ 3 - 0
app_dongri.py

@@ -299,6 +299,9 @@ def add_auto_task(isMaxCollect, isJina, isSimple = False, isAddStrengh = False,
             task_queue.appendleft(task_checkHelp(False))
             if auto_participate:
                 task_queue.appendleft(task_checkConfilits())
+
+        task_queue.appendleft(task_gotoTree())
+
         if always == False and g_times == 7:
             handle_end_game()
             if isAddStrengh:

+ 1 - 1
daily.json

@@ -1,6 +1,6 @@
 {
     "daily": {
-        "2025-04-01": {
+        "2025-04-04": {
             "login_task": true,
             "fight_bigMonster_times": 0
         }

BIN=BIN
dongri_img/check/life_tree.png


+ 2 - 0
dongri_pic.py

@@ -141,6 +141,8 @@ class check_img:
     xiaohao_jina = R'dongri_img\check\xiaohao_jina.png'
     jina_pic = R'dongri_img\check\jina_pic.png'
     jina_pic2 = R'dongri_img\check\jina_pic2.png'
+    life_tree = R'dongri_img\check\life_tree.png'
+
 
 
 class information_img:

+ 18 - 3
dongri_task.py

@@ -613,6 +613,22 @@ class task_checkHelp(dongri_task):
         waitClickImg_noWait_withBool(place_img.help, 2, 1)
         return True
     
+class task_gotoTree(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
+        
+        myTimeSleep_big()
+        yys_dragAuto(check_img.move_down)
+        yys_dragAuto(check_img.move_down)
+        myTimeSleep_big()
+        if waitClickImg_noWait_withBool(check_img.life_tree, 2, 1) == False:
+            return False
+        return True
+    
 class task_checkStoreRoom(dongri_task):
     def __init__(self):
         super().__init__(f"检查仓库或招募")
@@ -653,8 +669,6 @@ class task_checkStoreRoom(dongri_task):
                 waitClickImg_noWait_withBool(check_img.pet_gotreature, 2, 1)
                 waitClickImg_noWait_withBool(check_img.pet_begintreature, 2, 1)
 
-
-
         return True
     
 class task_checkConfilits(dongri_task):
@@ -1008,6 +1022,7 @@ class task_checkActivities(dongri_task):
 
 
 if __name__ == '__main__':
+    task_gotoTree().run()
     #task_fight_jina_only().run()
     #task_checkConfilits().run()
     #task_checkActivities().run()
@@ -1018,7 +1033,7 @@ if __name__ == '__main__':
     #basic_operate.add_strength()
     #task_fightMonster(False, False,False).run()
     #task_checkHelp().run()
-    task_checkStoreRoom().run()
+    #task_checkStoreRoom().run()
     #task_activity_lianmeng().run()
     #task_fight_yongbing(True).run()
     #task_collect([4,3,2,1]).run()