Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit c7b6cd8

Browse files
committed
1.0.5.1.2
1 parent b4bb212 commit c7b6cd8

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

sirsquirrel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
def update():
1717
r = requests.get("https://api.github.com/repos/Samsterr/SirSquirrelAssistant/releases/latest")
18-
tag = "1.0.5.1"
18+
tag = "1.0.5.1.2"
1919
r_tag = r.json()["tag_name"]
2020
if r_tag != tag:
2121
print("A New Version is Available! Downloading it to your current folder")

src/mirror.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)