From c3791959be160493c52280f42512dcd6ecb78af3 Mon Sep 17 00:00:00 2001 From: Avior Date: Fri, 18 Jun 2021 22:34:16 +0200 Subject: [PATCH] Added a legal field to each cards Signed-off-by: Avior --- interfaces.d.ts | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/interfaces.d.ts b/interfaces.d.ts index 9ecd06c..3a70ae3 100644 --- a/interfaces.d.ts +++ b/interfaces.d.ts @@ -46,8 +46,21 @@ export interface Set extends SetResume { releaseDate: string - legal?: { + /** + * Designate if the set is usable in tournaments + * + * Note: this is specific to the set and if a + * card is banned from the set it will still be true + */ + legal: { + /** + * Ability to play in standard tournaments + */ standard: boolean + + /** + * Ability to play in expanded tournaments + */ expanded: boolean } @@ -257,6 +270,23 @@ export interface Card extends CardResume * Define the rotation mark on cards >= Sword & Shield */ regulationMark?: string + + /** + * Card ability to be played in official tournaments + * + * Note: all cards are avaialable to play in unlimited tournaments + */ + legal: { + /** + * Ability to play in standard tournaments + */ + standard: boolean + + /** + * Ability to play in expanded tournaments + */ + expanded: boolean + } } export type StringEndpointList = Array