75 lines
1.4 KiB
TypeScript
75 lines
1.4 KiB
TypeScript
/**
|
|
* Uma or character card definitions.
|
|
*/
|
|
export interface Uma {
|
|
/**
|
|
* Uma ID.
|
|
*/
|
|
chara_card_id: number;
|
|
/**
|
|
* Character ID that the Uma is a variant of.
|
|
*/
|
|
chara_id: number;
|
|
/**
|
|
* Regional name of the Uma, comprised of the variant name and the character name.
|
|
* E.g. "[Special Dreamer] Special Week".
|
|
*/
|
|
name: string;
|
|
/**
|
|
* Regional variant name.
|
|
* E.g. "[Special Dreamer]".
|
|
*/
|
|
variant: string;
|
|
|
|
sprint: AptitudeLevel;
|
|
mile: AptitudeLevel;
|
|
medium: AptitudeLevel;
|
|
long: AptitudeLevel;
|
|
front: AptitudeLevel;
|
|
pace: AptitudeLevel;
|
|
late: AptitudeLevel;
|
|
end: AptitudeLevel;
|
|
turf: AptitudeLevel;
|
|
dirt: AptitudeLevel;
|
|
|
|
/**
|
|
* ID of the Uma's unique skill.
|
|
*/
|
|
unique: number;
|
|
/**
|
|
* ID of the Uma's first built-in skill.
|
|
*/
|
|
skill1: number;
|
|
/**
|
|
* ID of the Uma's second built-in skill.
|
|
*/
|
|
skill2: number;
|
|
/**
|
|
* ID of the Uma's third built-in skill.
|
|
*/
|
|
skill3: number;
|
|
/**
|
|
* ID of the skill unlocked at potential level 2.
|
|
*/
|
|
skill_pl2: number;
|
|
/**
|
|
* ID of the skill unlocked at potential level 3.
|
|
*/
|
|
skill_pl3: number;
|
|
/**
|
|
* ID of the skill unlocked at potential level 4.
|
|
*/
|
|
skill_pl4: number;
|
|
/**
|
|
* ID of the skill unlocked at potential level 5.
|
|
*/
|
|
skill_pl5: number;
|
|
}
|
|
|
|
export type AptitudeLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
|
|
export async function uma(): Promise<Uma[]> {
|
|
const resp = await fetch('/api/global/uma');
|
|
return resp.json();
|
|
}
|