phantasmal-world/src/dto.ts

60 lines
1.0 KiB
TypeScript
Raw Normal View History

export type ItemKindDto = WeaponItemKindDto
| ArmorItemKindDto
| ShieldItemKindDto
| UnitItemKindDto
| ToolItemKindDto
2019-06-11 20:34:57 +08:00
export type WeaponItemKindDto = {
type: 'weapon',
id: number,
name: string,
minAtp: number,
maxAtp: number,
ata: number,
maxGrind: number,
requiredAtp: number,
}
export type ArmorItemKindDto = {
type: 'armor',
id: number,
name: string,
}
export type ShieldItemKindDto = {
type: 'shield',
id: number,
name: string,
}
export type UnitItemKindDto = {
type: 'unit',
id: number,
name: string,
}
export type ToolItemKindDto = {
type: 'tool',
id: number,
2019-06-11 20:34:57 +08:00
name: string,
}
export type EnemyDropDto = {
difficulty: string,
2019-06-11 20:34:57 +08:00
episode: number,
sectionId: string,
2019-06-11 20:34:57 +08:00
enemy: string,
itemKindId: number,
2019-06-11 20:34:57 +08:00
dropRate: number,
rareRate: number,
}
export type BoxDropDto = {
difficulty: string,
2019-06-11 20:34:57 +08:00
episode: number,
sectionId: string,
areaId: number,
itemKindId: number,
2019-06-11 20:34:57 +08:00
dropRate: number,
}