Earthman card naming conventions overhauled: group-relative Arabic ordinals throughout (Implicit/Explicit Virtues, Classical/Absolute Elements, Zodiac, Wanderers, Popes); group prefix + title split across two lines in fan modal via name_group/name_title model properties; 4th suit migrated COINS → PENTACLES w. fa-star icon on both decks; pip names 2–10 spelled out; Classical Element 2 renamed Earth → Stone; migrations 0012–0015
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -253,6 +253,20 @@ class TarotCard(models.Model):
|
||||
court = {11: 'M', 12: 'J', 13: 'Q', 14: 'K'}
|
||||
return court.get(self.number, str(self.number))
|
||||
|
||||
@property
|
||||
def name_group(self):
|
||||
"""Returns 'Group N:' prefix if the name contains ': ', else ''."""
|
||||
if ': ' in self.name:
|
||||
return self.name.split(': ', 1)[0] + ':'
|
||||
return ''
|
||||
|
||||
@property
|
||||
def name_title(self):
|
||||
"""Returns the title after 'Group N: ', or the full name if no colon."""
|
||||
if ': ' in self.name:
|
||||
return self.name.split(': ', 1)[1]
|
||||
return self.name
|
||||
|
||||
@property
|
||||
def suit_icon(self):
|
||||
if self.arcana == self.MAJOR:
|
||||
@@ -261,8 +275,8 @@ class TarotCard(models.Model):
|
||||
self.WANDS: 'fa-wand-sparkles',
|
||||
self.CUPS: 'fa-trophy',
|
||||
self.SWORDS: 'fa-gun',
|
||||
self.COINS: 'fa-sack-dollar',
|
||||
self.PENTACLES: 'fa-sack-dollar',
|
||||
self.COINS: 'fa-star',
|
||||
self.PENTACLES: 'fa-star',
|
||||
}.get(self.suit, '')
|
||||
|
||||
def __str__(self):
|
||||
|
||||
Reference in New Issue
Block a user