taw / magic-search-engine

Search engine for Magic cards
MIT License
45 stars 20 forks source link

Parse cards out of deck descriptions. #241

Closed axxroytovu closed 1 year ago

axxroytovu commented 1 year ago

Now that the secret lair drops are uploaded, many of them reference bonus cards in the DISPLAY field. All such cards take one of two forms:

Turning these into functional links would be a useful tool. Also useful would be something like [MOM:id=u r>=r] to search for the blue jumpstart random rares.

taw commented 1 year ago

So there are two ways:

If it's mostly single cards, we can have special syntax, but if we get to [MOM:id=u r>=r], might just as well make it a link.

Then again, embedded links wouldn't work great if we wanted to export this data somehow.

axxroytovu commented 1 year ago

I figured it would just leave the [SLD:123] in place as the link, and the text around it could be whatever.

axxroytovu commented 1 year ago

Seems to be working on all the secret lairs I checked. I'm closing this as complete.