Support Jasper J as sixteenth Essence between Citrine C and Amber B

This commit is contained in:
Christian Daniel Jensen 2026-11-03 15:08:24 -07:00
parent 919259f042
commit 398b8d589f

View file

@ -13,7 +13,7 @@ namespace Essence
// The other codes have no names, colors or game mechanics assigned here. // The other codes have no names, colors or game mechanics assigned here.
inline const QString &symbols() inline const QString &symbols()
{ {
static const QString value = QStringLiteral("MSOGEAQCBRLVTPN"); static const QString value = QStringLiteral("MSOGEAQCJBRLVTPN");
return value; return value;
} }
@ -41,7 +41,7 @@ inline QString normalizeIdentity(const QString &input)
// Hybrid/phrexian/other MTG-specific syntax is NOT defined as Essence. // Hybrid/phrexian/other MTG-specific syntax is NOT defined as Essence.
inline QStringList parseCost(const QString &cost) inline QStringList parseCost(const QString &cost)
{ {
static const QRegularExpression regex(QStringLiteral(R"(\{([^}]+)\}|(\d+)|([MSOGEAQCBRLVTPN]))")); static const QRegularExpression regex(QStringLiteral(R"(\{([^}]+)\}|(\d+)|([MSOGEAQCJBRLVTPN]))"));
QStringList result; QStringList result;
auto matches = regex.globalMatch(cost); auto matches = regex.globalMatch(cost);
while (matches.hasNext()) { while (matches.hasNext()) {