pokerogue/src/data/variant.ts

32 lines
612 B
TypeScript
Raw Normal View History

import { VariantTier } from "#app/enums/variant-tier.js";
2024-04-18 22:52:26 -04:00
export type Variant = 0 | 1 | 2;
export type VariantSet = [Variant, Variant, Variant];
export const variantData: any = {};
export const variantColorCache = {};
export function getVariantTint(variant: Variant): integer {
switch (variant) {
case 0:
return 0xf8c020;
case 1:
return 0x20f8f0;
case 2:
return 0xe81048;
2024-04-18 22:52:26 -04:00
}
}
export function getVariantIcon(variant: Variant): integer {
switch (variant) {
case 0:
return VariantTier.STANDARD;
case 1:
return VariantTier.RARE;
case 2:
return VariantTier.EPIC;
}
}