Page 1 of 1

card db split in two

PostPosted: 16 Feb 2013, 00:53
by Max mtg
The former singleton carddb has now two instances. One keeps all common cards, another one is used for avatars, planes and schemes. When requesting a card from that storage you'll have to specify exactly which kind of card you mean.

Pros:
You may have avatar and creature with same name!
Schemes won't get in random decks for sure inless you've used that special store to get them.

Cons:
Extra efforts when looking for a card of unknown type (hope i wrote enough code to workaround thay problem)


Questions? Bug reports?

Re: card db split in two

PostPosted: 16 Feb 2013, 01:02
by friarsol
According to Oracle, no cards have the same name. "Birds of Paradise" is a creature. "Birds of Paradise Avatar" is an Avatar.

As far as the split DB, I think that should be fine. Generally when you are looking for special cards, you only need those special cards.

Re: card db split in two

PostPosted: 16 Feb 2013, 07:07
by Max mtg
friarsol wrote:According to Oracle, no cards have the same name. "Birds of Paradise" is a creature. "Birds of Paradise Avatar" is an Avatar.
Good to know that it's now our workaround, but it's global.