Allow differential priorities for mass decks

This commit is contained in:
mez 2025-04-14 19:51:17 +01:00
parent df1b89a053
commit d2157a3bb3
3 changed files with 10 additions and 3 deletions

View file

@ -122,7 +122,7 @@ for event in log.log:
if thedeck in variables.highpriority:
thecard["priority"] = 1
elif len(thecard["mass"]) > 0:
thecard["priority"] = 2
thecard["priority"] = 3
else:
thecard["priority"] = 4
cardlist.append(thecard)
@ -309,7 +309,12 @@ for deck in decks:
thedeck["mastered"] = False
if deck in variables.highpriority or count >= variables.highthreshold or deck in portdecks or thedeck["colour"] == "limited":
thedeck["priority"] = 1
elif len(thedeck["mass"]) > 0 or count >= variables.mediumthreshold:
elif len(thedeck["mass"]) > 0:
if count >= variables.massmediumthreshold:
thedeck["priority"] = 2
else:
thedeck["priority"] = 3
elif count >= variables.mediumthreshold:
thedeck["priority"] = 2
elif count >= variables.collectthreshold:
thedeck["priority"] = 3