Skip to content

Commit

Permalink
Update cafe_reward.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pur1fying committed Feb 5, 2024
1 parent ce1731c commit b6d26d2
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions module/cafe_reward.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,18 +131,12 @@ def interaction_for_cafe_solve_method3(self):


def to_invitation_ticket(self, skip_first_screenshot=False):
if self.server == "CN":
possible = {
'cafe_cafe-reward-status': (905, 159, 3),
'cafe_menu': (838, 647, 3),
}
end = 'cafe_invitation-ticket'
return image.detect(self, end, possible, skip_first_screenshot=skip_first_screenshot)
elif self.server == "Global":
click_pos = [[836, 650]]
los = ["cafe"]
end = ["invitation_ticket"]
color.common_rgb_detect_method(self, click_pos, los, end, skip_first_screenshot=skip_first_screenshot)
possible = {
'cafe_cafe-reward-status': (905, 159),
'cafe_menu': (838, 647),
}
end = 'cafe_invitation-ticket'
return image.detect(self, end, possible, skip_first_screenshot=skip_first_screenshot)


def invite_girl(self):
Expand Down

0 comments on commit b6d26d2

Please sign in to comment.