Skip to content

Commit

Permalink
fix edge case for color name
Browse files Browse the repository at this point in the history
  • Loading branch information
spookybear0 committed Sep 16, 2024
1 parent 6394972 commit eff7be4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion helpers/tdfhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,15 @@ def element_to_color(element: str) -> str:
"Fire": "Red",
"Ice": "Blue",
"Earth": "Green",
"None": "None"
"None": "None",

# extras for edge cases
"Green": "Green",
"Red": "Red",
"Blue": "Blue",
"Solid Red": "Red",
"Solid Blue": "Blue",
"Solid Green": "Green",
}

return conversion[element]
Expand Down

0 comments on commit eff7be4

Please sign in to comment.