1
0
mirror of synced 2024-11-23 22:10:59 +01:00

More correct fallback logic for earning all emblems or not having an emblem catalog.

This commit is contained in:
Jennifer Taylor 2022-11-13 02:55:57 +00:00
parent ba5b8dcc8e
commit 7c84b1f27d

View File

@ -324,7 +324,18 @@ class JubeatBase(CoreHandler, CardManagerHandler, PASELIHandler, Base):
if gameitem.data.get_int("rarity") in {4, 5}:
premiumemblems.add(gameitem.id)
# Default to some emblems in case the catalog is not available.
# If they've earned all the premium emblems, give them normal emblems instead.
if normalemblems and not premiumemblems:
premiumemblems = normalemblems
# Now, try to default to the default emblem, in the case that the person
# has earned every single part (unlikely).
if not normalemblems:
normalemblems = self.default_select_jbox()
if not premiumemblems:
premiumemblems = self.default_select_jbox()
# Default to some hand-picked emblems in case the catalog is not available.
normalindex = 2
premiumindex = 1
if normalemblems: