1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 23:18:22 +08:00

Merge pull request #1511 from VirtualTowel/master

Add: Suffix of Comission Supported
This commit is contained in:
LmeSzinc
2022-08-11 23:05:45 +08:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@@ -114,6 +114,9 @@ class RewardCommission(UI, InfoHandler):
"""
# Count Commission
total = daily.add_by_eq(urgent)
# Commissions with higher suffix are always below those with smaller suffix
# Reverse the commission list to choose commissions with higher suffix first
total = total[::-1]
self.max_commission = 4
for comm in total:
if comm.genre == 'event_daily':

View File

@@ -326,6 +326,8 @@ class Commission:
return False
if self.repeat_count != other.repeat_count:
return False
if self.genre in ['extra_oil', 'night_oil'] and self.suffix != other.suffix:
return False
return True