@@ -255,10 +255,10 @@ def pack_selection(self):
255255 self .logger .debug (common .luminence (x ,y ))
256256 refresh_flag = common .luminence (x ,y ) < 70
257257
258- # if floor == "f5" and common.element_exist("pictures/mirror/packs/f5/nocturnal.png"):
259- # self.choose_pack("pictures/mirror/packs/f5/nocturnal.png")
258+ if floor == "f5" and common .element_exist ("pictures/mirror/packs/f5/nocturnal.png" ):
259+ self .choose_pack ("pictures/mirror/packs/f5/nocturnal.png" )
260260
261- if self .exclusion_detection (floor ) and not refresh_flag : #if pack exclusion detected and not refreshed
261+ elif self .exclusion_detection (floor ) and not refresh_flag : #if pack exclusion detected and not refreshed
262262 self .logger .info ("Pack exclusion detected, refreshing" )
263263 common .click_matching ("pictures/mirror/general/refresh.png" )
264264 common .mouse_move (200 ,200 )
@@ -392,12 +392,13 @@ def check_nodes(self,nodes):
392392 non_exist = [1 ,1 ,1 ]
393393 top = common .greyscale_match_image ("pictures/mirror/general/node_1.png" )
394394 middle = common .greyscale_match_image ("pictures/mirror/general/node_2.png" )
395- bottom = common .greyscale_match_image ("pictures/mirror/general/node_3.png" )
395+ bottom = common .greyscale_match_image ("pictures/mirror/general/node_3_o.png" )
396+ bottom_alt = common .greyscale_match_image ("pictures/mirror/general/node_3.png" )
396397 if not top :
397398 non_exist [0 ] = 0
398399 if not middle :
399400 non_exist [1 ] = 0
400- if not bottom :
401+ if not bottom and bottom_alt :
401402 non_exist [2 ] = 0
402403 nodes = [y for y , exists in zip (nodes , non_exist ) if exists != 0 ]
403404 return nodes
0 commit comments