fafranco82 / swdestinydb

Star Wars Destiny Deckbuilder
52 stars 26 forks source link

Feature : Banned and errata'd data for each format #318

Closed jlannoy closed 3 years ago

jlannoy commented 3 years ago

This feature allow two new status for cards regarding the chosen deck format :

1) The card have been banned in the format. When checking the details about the card, it appears as a red background with a new kind of forbidden icon... And a tooltip to make things clearer. When building a deck, the card is simply considered as an illegal card (grayed and striked).

Capture d’écran 2020-12-19 à 13 26 30

2) The card have been errated in the format. The goal is to allow a fan-made format to indicated a card text have been errata'd but only for its own format. It appears with a warning when looking at the card, and yet a tooltip to make things clear. When building a deck, the card appears with an exclamation point in the availability list and in the deck list. The same as for the restricted list, but with an appropriate tooltip.

Capture d’écran 2020-12-19 à 13 30 11

This way, the card text in SWDB should only be modified and pointed with has_errata = true if the card have been errated in all formats. The errata itself must be checked in the corresponding Holocron but... It seems me the cleanest way to do it.

To work properly, this PR will need :