mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-16 03:27:24 +08:00
Merge pull request #1511 from VirtualTowel/master
Add: Suffix of Comission Supported
This commit is contained in:
@@ -114,6 +114,9 @@ class RewardCommission(UI, InfoHandler):
|
|||||||
"""
|
"""
|
||||||
# Count Commission
|
# Count Commission
|
||||||
total = daily.add_by_eq(urgent)
|
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
|
self.max_commission = 4
|
||||||
for comm in total:
|
for comm in total:
|
||||||
if comm.genre == 'event_daily':
|
if comm.genre == 'event_daily':
|
||||||
|
|||||||
@@ -326,6 +326,8 @@ class Commission:
|
|||||||
return False
|
return False
|
||||||
if self.repeat_count != other.repeat_count:
|
if self.repeat_count != other.repeat_count:
|
||||||
return False
|
return False
|
||||||
|
if self.genre in ['extra_oil', 'night_oil'] and self.suffix != other.suffix:
|
||||||
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user