16 lines
453 B
TypeScript
16 lines
453 B
TypeScript
|
|
import type { Card } from './card.csv';
|
||
|
|
import type { Effect } from './effect.csv';
|
||
|
|
|
||
|
|
type CardEffectTable = readonly {
|
||
|
|
readonly id: string;
|
||
|
|
readonly card: Card;
|
||
|
|
readonly trigger: "onPlay" | "onDraw" | "onDiscard";
|
||
|
|
readonly target: "self" | "target" | "all" | "random";
|
||
|
|
readonly effects: [Effect, number][];
|
||
|
|
}[];
|
||
|
|
|
||
|
|
export type CardEffect = CardEffectTable[number];
|
||
|
|
|
||
|
|
declare function getData(): CardEffectTable;
|
||
|
|
export default getData;
|