card-drop/src/contracts/SeriesMetadata.ts
Ethan Lane 5deb6fcc14
All checks were successful
Test / build (push) Successful in 9s
Add a colour override for embed colours
- 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
2024-08-29 19:21:53 +01:00

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,
}