zenno: fix aptitude level type for umas
This commit is contained in:
+12
-12
@@ -1,3 +1,5 @@
|
|||||||
|
import * as race from '$lib/race';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Uma or character card definitions.
|
* Uma or character card definitions.
|
||||||
*/
|
*/
|
||||||
@@ -21,16 +23,16 @@ export interface Uma {
|
|||||||
*/
|
*/
|
||||||
variant: string;
|
variant: string;
|
||||||
|
|
||||||
sprint: AptitudeLevel;
|
sprint: race.AptitudeLevel;
|
||||||
mile: AptitudeLevel;
|
mile: race.AptitudeLevel;
|
||||||
medium: AptitudeLevel;
|
medium: race.AptitudeLevel;
|
||||||
long: AptitudeLevel;
|
long: race.AptitudeLevel;
|
||||||
front: AptitudeLevel;
|
front: race.AptitudeLevel;
|
||||||
pace: AptitudeLevel;
|
pace: race.AptitudeLevel;
|
||||||
late: AptitudeLevel;
|
late: race.AptitudeLevel;
|
||||||
end: AptitudeLevel;
|
end: race.AptitudeLevel;
|
||||||
turf: AptitudeLevel;
|
turf: race.AptitudeLevel;
|
||||||
dirt: AptitudeLevel;
|
dirt: race.AptitudeLevel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ID of the Uma's unique skill.
|
* ID of the Uma's unique skill.
|
||||||
@@ -66,8 +68,6 @@ export interface Uma {
|
|||||||
skill_pl5: number;
|
skill_pl5: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AptitudeLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
||||||
|
|
||||||
export async function uma(): Promise<Uma[]> {
|
export async function uma(): Promise<Uma[]> {
|
||||||
const resp = await fetch('/api/global/uma');
|
const resp = await fetch('/api/global/uma');
|
||||||
return resp.json();
|
return resp.json();
|
||||||
|
|||||||
Reference in New Issue
Block a user