Skip to content

Commit 5d4d7c0

Browse files
committed
feat(enums): add enums for game configuration
1 parent 9423047 commit 5d4d7c0

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

src/balatrobench/enums.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
"""Enums for Balatro game configuration."""
2+
3+
from enum import StrEnum
4+
5+
6+
class Deck(StrEnum):
7+
"""Balatro deck types with their special abilities."""
8+
9+
RED = "RED" # +1 discard every round
10+
BLUE = "BLUE" # +1 hand every round
11+
YELLOW = "YELLOW" # Start with extra $10
12+
GREEN = "GREEN" # At end of each Round, $2 per remaining Hand $1 per remaining Discard Earn no Interest
13+
BLACK = "BLACK" # +1 Joker slot -1 hand every round
14+
MAGIC = "MAGIC" # Start run with the Crystal Ball voucher and 2 copies of The Fool
15+
NEBULA = "NEBULA" # Start run with the Telescope voucher and -1 consumable slot
16+
GHOST = "GHOST" # Spectral cards may appear in the shop. Start with a Hex card
17+
ABANDONED = "ABANDONED" # Start run with no Face Cards in your deck
18+
CHECKERED = "CHECKERED" # Start run with 26 Spades and 26 Hearts in deck
19+
ZODIAC = "ZODIAC" # Start run with Tarot Merchant, Planet Merchant, and Overstock
20+
PAINTED = "PAINTED" # +2 hand size, -1 Joker slot
21+
ANAGLYPH = "ANAGLYPH" # After defeating each Boss Blind, gain a Double Tag
22+
PLASMA = "PLASMA" # Balanced Chips and Mult when calculating score for played hand X2 base Blind size
23+
ERRATIC = "ERRATIC" # All Ranks and Suits in deck are randomized
24+
25+
26+
class Stake(StrEnum):
27+
"""Balatro stake (difficulty) levels."""
28+
29+
WHITE = "WHITE" # 1. Base Difficulty
30+
RED = "RED" # 2. Small Blind gives no reward money. Applies all previous Stakes
31+
GREEN = "GREEN" # 3. Required scores scales faster for each Ante. Applies all previous Stakes
32+
BLACK = "BLACK" # 4. Shop can have Eternal Jokers. Applies all previous Stakes
33+
BLUE = "BLUE" # 5. -1 Discard. Applies all previous Stakes
34+
PURPLE = "PURPLE" # 6. Required score scales faster for each Ante. Applies all previous Stakes
35+
ORANGE = "ORANGE" # 7. Shop can have Perishable Jokers. Applies all previous Stakes
36+
GOLD = "GOLD" # 8. Shop can have Rental Jokers. Applies all previous Stakes

0 commit comments

Comments
 (0)