mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-17 08:00:13 +01:00
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:
parent
279d81ed3c
commit
c81a5fb64e
3 changed files with 544 additions and 263 deletions
|
|
@ -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']):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue