mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-26 13:57:53 +08:00
Fix: Now will only run commissions with priority > 0
This commit is contained in:
@@ -343,11 +343,14 @@ class RewardCommission(UI, InfoHandler):
|
|||||||
comm_priority.append(pri)
|
comm_priority.append(pri)
|
||||||
|
|
||||||
# Sort
|
# Sort
|
||||||
commission = list(np.array(commission)[
|
commission = list(np.array(commission)[np.argsort(comm_priority)])[::-1]
|
||||||
np.argsort(comm_priority)])[::-1]
|
# Select priority > 0
|
||||||
|
commission = [comm for comm in commission if priority[comm.genre] > 0]
|
||||||
|
# Select within time_limit
|
||||||
if time_limit:
|
if time_limit:
|
||||||
commission = [
|
commission = [
|
||||||
comm for comm in commission if datetime.now() + comm.duration <= time_limit]
|
comm for comm in commission if datetime.now() + comm.duration <= time_limit]
|
||||||
|
|
||||||
commission = commission[:4 - running_count]
|
commission = commission[:4 - running_count]
|
||||||
daily_choose, urgent_choose = CommissionGroup(
|
daily_choose, urgent_choose = CommissionGroup(
|
||||||
self.config), CommissionGroup(self.config)
|
self.config), CommissionGroup(self.config)
|
||||||
|
|||||||
Reference in New Issue
Block a user