Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
exit color-based tasks on sabotage
Browse files Browse the repository at this point in the history
  • Loading branch information
TimShaw1 committed Jul 5, 2023
1 parent 59a11f2 commit d1c4ec0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions task-solvers/Activate Weather Nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
data = getGameData()
dim = get_dimensions()
if data["room"] == "Laboratory":
if is_urgent_task() is not None:
if is_urgent_task():
raise SystemExit(0)
x = dim[0] + round(dim[2] / 3.5)
y = dim[1] + round(dim[3] / 6.97)
Expand Down Expand Up @@ -45,7 +45,7 @@ def get_maze() -> list[list]:
maze[i][j] = 0
else:
maze[i][j] = 1
if is_urgent_task() is not None:
if is_urgent_task():
raise SystemExit(0)
return maze

Expand Down
2 changes: 1 addition & 1 deletion task-solvers/Align Telescope.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
x = dim[0] + round(dim[2] / 1.35)
y = dim[1] + round(dim[3] / 1.24)
pixel = pyautogui.pixel(x,y)
if is_urgent_task() is not None:
if is_urgent_task():
raise SystemExit(0)

name = ""
Expand Down
2 changes: 1 addition & 1 deletion task-solvers/Clean O2 Filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
break
if (is_task_done("Clean O2 Filter")):
break
if is_urgent_task() is not None:
if is_urgent_task():
raise SystemExit(0)

# Color is 200 149 66
Expand Down
2 changes: 1 addition & 1 deletion task-solvers/Insert Keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

x_offset = round(dimensions[2] / 6.64)

if is_urgent_task() is not None:
if is_urgent_task():
raise SystemExit(0)

for i in range(3):
Expand Down
2 changes: 1 addition & 1 deletion task-solvers/Monitor Oxygen.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

async def get_y_spots(i):
# 126,196,220
if is_urgent_task() is not None:
if is_urgent_task():
raise SystemExit(0)
for j in range(round(y_height / 4)):
pixel = pyautogui.pixel(x + x_offset*i, y + 4*j)
Expand Down
2 changes: 1 addition & 1 deletion task-solvers/Start Reactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

exit = False
while not is_task_done("Start Reactor"):
if is_urgent_task() is not None:
if is_urgent_task():
raise SystemExit(0)
screenshot = get_screenshot(dimensions)
for i in range(3):
Expand Down

0 comments on commit d1c4ec0

Please sign in to comment.