mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-18 00:20:13 +01:00
Made numerous changes to the card draw functions, as well as other tagging functions up through to artifact tagging
These changes were done with teh assistance of traycer
This commit is contained in:
parent
a4abea2c3c
commit
083ef937af
4 changed files with 982 additions and 1077 deletions
18
settings.py
18
settings.py
|
|
@ -162,6 +162,24 @@ targetted_removal_tags = ['exile target', 'destroy target', 'return target', 'sh
|
|||
|
||||
triggers = ['when', 'whenever', 'at']
|
||||
|
||||
# Constants for draw-related functionality
|
||||
DRAW_RELATED_TAGS = [
|
||||
'Card Draw', # General card draw effects
|
||||
'Conditional Draw', # Draw effects with conditions/triggers
|
||||
'Cycling', # Cycling and similar discard-to-draw effects
|
||||
'Life to Draw', # Draw effects that require paying life
|
||||
'Loot', # Draw + discard effects
|
||||
'Replacement Draw', # Effects that modify or replace draws
|
||||
'Sacrifice to Draw', # Draw effects requiring sacrificing permanents
|
||||
'Unconditional Draw' # Pure card draw without conditions
|
||||
]
|
||||
|
||||
# Text patterns that exclude cards from being tagged as unconditional draw
|
||||
DRAW_EXCLUSION_PATTERNS = [
|
||||
'annihilator', # Eldrazi mechanic that can match 'draw' patterns
|
||||
'ravenous', # Keyword that can match 'draw' patterns
|
||||
]
|
||||
|
||||
# Constants for DataFrame validation and processing
|
||||
REQUIRED_COLUMNS = [
|
||||
'name', 'faceName', 'edhrecRank', 'colorIdentity', 'colors',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue