Started logic for adding creatures, ramp, board wipes, interaction, and other cards based on the chosen themes

Fixed logical error in tagger causing it to look for 'Artifact' in a lowercase 'type' column

Need to refine logic for adding by tags and weighted theme values.
This commit is contained in:
mwisnowski 2024-12-25 19:56:35 -08:00
parent 279d81ed3c
commit c81a5fb64e
3 changed files with 544 additions and 263 deletions

View file

@ -2941,7 +2941,7 @@ def mana_dorks(df, color):
for index, row in df.iterrows():
theme_tags = row['themeTags']
if pd.notna(row['text']):
if ('Creature' in row['type'].lower()
if ('Creature' in row['type']
):
# Tap itself for mana
if ('{T}: Add' in row['text']):
@ -3003,7 +3003,7 @@ def mana_rocks(df, color):
for index, row in df.iterrows():
theme_tags = row['themeTags']
if pd.notna(row['text']):
if ('Artifact' in row['type'].lower()
if ('Artifact' in row['type']
):
# Tap itself for mana
if ('{T}: Add' in row['text']):