Ethan Lane
5deb6fcc14
All checks were successful
Test / build (push) Successful in 9s
- Using a new optional value in the JSON, if set overrides the default one set by the rarity - Added a failsafe if the override colour is invalid to default and log a warning #349
21 lines
390 B
TypeScript
21 lines
390 B
TypeScript
import { CardRarity } from "../constants/CardRarity";
|
|
|
|
export interface SeriesMetadata {
|
|
id: number,
|
|
name: string,
|
|
cards: CardMetadata[],
|
|
}
|
|
|
|
export interface CardMetadata {
|
|
id: string,
|
|
name: string,
|
|
type: CardRarity,
|
|
path: string,
|
|
subseries?: string,
|
|
colour?: string,
|
|
}
|
|
|
|
export interface DropResult {
|
|
series: SeriesMetadata,
|
|
card: CardMetadata,
|
|
} |