poppu-mtg / StackIt

Python script generating a column-shaped TCG decklist based on cropped captions of each card's art.
MIT License
14 stars 6 forks source link

Config file #15

Closed silasary closed 7 years ago

silasary commented 7 years ago

This required a surprisingly large refactor to implement. I de-duplicated the four separate instances that we would perform a mana cost lookup into a single method call, which should make things nicer. As usual, it's still not perfect, but is much better than it was.

Closes #14

poppu-mtg commented 7 years ago

Gosh, Lotus Bloom... I should have thought about cases like that, and the Pacts too...

Great idea to create a function for CMC lookup: having to copy every change 4 times was going to be a source of human error (mostly mine) in the long run. Thanks!