mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2025-12-16 19:55:12 +00:00
Compare commits
2 Commits
eb8048ccd6
...
bbf3bf7c36
| Author | SHA1 | Date | |
|---|---|---|---|
| bbf3bf7c36 | |||
| 5e4abc147e |
@ -39,7 +39,7 @@ class Bounty(BountyUI):
|
||||
|
||||
@property
|
||||
def is_ticket_enough(self) -> bool:
|
||||
return self.config.stored.BountyTicket.value >= self.current_count
|
||||
return self.current_ticket >= self.current_count
|
||||
|
||||
@property
|
||||
def current_bounty(self):
|
||||
@ -53,10 +53,16 @@ class Bounty(BountyUI):
|
||||
def current_count(self):
|
||||
return self.task[0][3]
|
||||
|
||||
@property
|
||||
def current_ticket(self):
|
||||
return self.config.stored.BountyTicket.value
|
||||
|
||||
def handle_bounty(self, status):
|
||||
match status:
|
||||
case BountyStatus.OCR:
|
||||
if self.get_ticket():
|
||||
if self.current_ticket == 0 or not self.task:
|
||||
return BountyStatus.FINISH
|
||||
return BountyStatus.SELECT
|
||||
case BountyStatus.SELECT:
|
||||
if not self.is_ticket_enough:
|
||||
@ -70,8 +76,6 @@ class Bounty(BountyUI):
|
||||
case BountyStatus.SWEEP:
|
||||
if self.do_sweep(self.current_count):
|
||||
self.task.pop(0)
|
||||
if not self.task:
|
||||
return BountyStatus.FINISH
|
||||
return BountyStatus.END
|
||||
return BountyStatus.ENTER
|
||||
case BountyStatus.END:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user