mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-01-18 12:15:31 +00:00
Compare commits
No commits in common. "bbf3bf7c3680c42f2ab8d1645a3fb87908a5d845" and "eb8048ccd61aafb46a9a6b575949e91ce86c322e" have entirely different histories.
bbf3bf7c36
...
eb8048ccd6
@ -39,7 +39,7 @@ class Bounty(BountyUI):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def is_ticket_enough(self) -> bool:
|
def is_ticket_enough(self) -> bool:
|
||||||
return self.current_ticket >= self.current_count
|
return self.config.stored.BountyTicket.value >= self.current_count
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def current_bounty(self):
|
def current_bounty(self):
|
||||||
@ -53,16 +53,10 @@ class Bounty(BountyUI):
|
|||||||
def current_count(self):
|
def current_count(self):
|
||||||
return self.task[0][3]
|
return self.task[0][3]
|
||||||
|
|
||||||
@property
|
|
||||||
def current_ticket(self):
|
|
||||||
return self.config.stored.BountyTicket.value
|
|
||||||
|
|
||||||
def handle_bounty(self, status):
|
def handle_bounty(self, status):
|
||||||
match status:
|
match status:
|
||||||
case BountyStatus.OCR:
|
case BountyStatus.OCR:
|
||||||
if self.get_ticket():
|
if self.get_ticket():
|
||||||
if self.current_ticket == 0 or not self.task:
|
|
||||||
return BountyStatus.FINISH
|
|
||||||
return BountyStatus.SELECT
|
return BountyStatus.SELECT
|
||||||
case BountyStatus.SELECT:
|
case BountyStatus.SELECT:
|
||||||
if not self.is_ticket_enough:
|
if not self.is_ticket_enough:
|
||||||
@ -76,6 +70,8 @@ class Bounty(BountyUI):
|
|||||||
case BountyStatus.SWEEP:
|
case BountyStatus.SWEEP:
|
||||||
if self.do_sweep(self.current_count):
|
if self.do_sweep(self.current_count):
|
||||||
self.task.pop(0)
|
self.task.pop(0)
|
||||||
|
if not self.task:
|
||||||
|
return BountyStatus.FINISH
|
||||||
return BountyStatus.END
|
return BountyStatus.END
|
||||||
return BountyStatus.ENTER
|
return BountyStatus.ENTER
|
||||||
case BountyStatus.END:
|
case BountyStatus.END:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user