Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,9 +569,9 @@ def short_name(self):
SKILL_SLOTS_MINMAX = {
'N': [0, 1, 0],
'R': [1, 2, 1],
'SR': [2, 4, 1],
'SSR': [3, 6, 2],
'UR': [4, 8, 2],
'SR': [2, 4, 4],
'SSR': [3, 6, 6],
'UR': [4, 8, 8],
}

class Card(ExportModelOperationsMixin('Card'), models.Model):
Expand Down Expand Up @@ -650,13 +650,11 @@ class Card(ExportModelOperationsMixin('Card'), models.Model):

@property
def min_skill_slot(self):
if self.is_promo:
return SKILL_SLOTS_MINMAX[self.rarity][2]
return SKILL_SLOTS_MINMAX[self.rarity][0]

@property
def max_skill_slot(self):
if self.is_promo:
if self.is_promo:
return SKILL_SLOTS_MINMAX[self.rarity][2]
return SKILL_SLOTS_MINMAX[self.rarity][1]

Expand Down