Skip to content

Commit eac5200

Browse files
committed
refactor: update enums and merge tarot, planet and spectral cards into consumables
1 parent fc8d6b4 commit eac5200

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

src/balatrobot/enums.py

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class ErrorCode(Enum):
124124

125125

126126
@unique
127-
class JokerCards(Enum):
127+
class Jokers(Enum):
128128
"""Joker cards available in Balatro with their effects."""
129129

130130
# Common Jokers (Rarity 1)
@@ -301,8 +301,10 @@ class JokerCards(Enum):
301301

302302

303303
@unique
304-
class TarotCards(Enum):
305-
"""Tarot consumable cards and their effects."""
304+
class Consumables(Enum):
305+
"""Consumable cards available in Balatro with their effects."""
306+
307+
# Tarot consumable cards and their effects.
306308

307309
c_fool = (
308310
"Creates the last Tarot or Planet Card used during this run (The Fool excluded)"
@@ -329,10 +331,7 @@ class TarotCards(Enum):
329331
c_judgement = "Creates a random Joker card (Must have room)"
330332
c_world = "Converts up to 3 selected cards to Spades"
331333

332-
333-
@unique
334-
class PlanetCards(Enum):
335-
"""Planet consumable cards that level up poker hands."""
334+
# Planet consumable cards that level up poker hands.
336335

337336
c_mercury = "Levels up Pair"
338337
c_venus = "Levels up Three of a Kind"
@@ -347,10 +346,7 @@ class PlanetCards(Enum):
347346
c_ceres = "Levels up Five of a Kind"
348347
c_eris = "Levels up High Card"
349348

350-
351-
@unique
352-
class SpectralCards(Enum):
353-
"""Spectral consumable cards with powerful effects."""
349+
# Spectral consumable cards with powerful effects.
354350

355351
c_familiar = "Destroy 1 random card in your hand, add 3 random Enhanced face cards to your hand"
356352
c_grim = (
@@ -375,7 +371,7 @@ class SpectralCards(Enum):
375371

376372

377373
@unique
378-
class Voucher(Enum):
374+
class Vouchers(Enum):
379375
"""Voucher cards that provide permanent upgrades."""
380376

381377
v_overstock_norm = "+1 card slot available in shop (to 3 slots)"
@@ -415,7 +411,7 @@ class Voucher(Enum):
415411

416412

417413
@unique
418-
class Tag(Enum):
414+
class Tags(Enum):
419415
"""Tag rewards that provide various benefits."""
420416

421417
tag_uncommon = "Shop has a free Uncommon Joker"
@@ -449,7 +445,7 @@ class Tag(Enum):
449445

450446

451447
@unique
452-
class CardEditions(Enum):
448+
class Editions(Enum):
453449
"""Special editions that can be applied to cards."""
454450

455451
e_foil = "+50 Chips"
@@ -459,7 +455,7 @@ class CardEditions(Enum):
459455

460456

461457
@unique
462-
class CardEnhancements(Enum):
458+
class Enhancements(Enum):
463459
"""Enhancements that can be applied to playing cards."""
464460

465461
m_bonus = "+30 Chips when scored"
@@ -473,7 +469,7 @@ class CardEnhancements(Enum):
473469

474470

475471
@unique
476-
class CardSeals(Enum):
472+
class Seals(Enum):
477473
"""Seals that can be applied to playing cards."""
478474

479475
Red = "Retrigger this card 1 time. Retriggering means that the effect of the cards is applied again including counting again in the score calculation"

0 commit comments

Comments
 (0)