77from module .os .globe_operation import GlobeOperation
88from module .os .globe_zone import ZoneManager
99from module .os_handler .assets import *
10+ from module .storage .assets import BOX_USE
1011from module .ui .scroll import Scroll
1112
1213SCROLL_STORAGE = Scroll (STORATE_SCROLL , color = (247 , 211 , 66 ))
@@ -80,6 +81,10 @@ def _storage_item_use(self, button):
8081 if self .appear_then_click (STORAGE_USE , offset = (180 , 30 ), interval = 5 ):
8182 self .interval_reset (STORAGE_CHECK )
8283 continue
84+ if self .appear_then_click (BOX_USE , offset = (180 , 30 ), interval = 5 ):
85+ self .interval_reset (STORAGE_CHECK )
86+ success = True
87+ continue
8388 if self .appear_then_click (GET_ITEMS_1 , interval = 5 ):
8489 self .interval_reset (STORAGE_CHECK )
8590 success = True
@@ -92,6 +97,8 @@ def _storage_item_use(self, button):
9297 self .device .click (CLICK_SAFE_AREA )
9398 success = True
9499 continue
100+ if self .handle_story_skip ():
101+ continue
95102 # Use item
96103 if self .appear (STORAGE_CHECK , offset = (20 , 20 ), interval = 5 ):
97104 self .device .click (button )
@@ -114,6 +121,7 @@ def storage_logger_use_all(self):
114121
115122 image = rgb2gray (self .device .image )
116123 items = TEMPLATE_STORAGE_LOGGER .match_multi (image , similarity = 0.5 )
124+ items .extend (TEMPLATE_STORAGE_LOGGER_UNLOCK .match_multi (image , similarity = 0.5 ))
117125 logger .attr ('Storage_logger' , len (items ))
118126
119127 if len (items ):
@@ -123,6 +131,12 @@ def storage_logger_use_all(self):
123131 logger .info ('All loggers in storage have been used' )
124132 break
125133
134+ def logger_use (self ):
135+ logger .hr ('Logger use' )
136+ self .storage_enter ()
137+ self .storage_logger_use_all ()
138+ self .storage_quit ()
139+
126140 def storage_sample_use_all (self ):
127141 """
128142 Pages:
0 commit comments