* Add Awakening type and remove old defs We remove the flat list of awakening data, as we will be pulling data from the database * Update types to use new Awakening type * Update WeaponUnit for Grand weapon awakenings * Update object modals We needed to update CharacterModal and WeaponModal to display awakenings from the new data format. However, the component used (`SelectWithInput`) was tied to AX Skills in a way that would take exponentially more time to resolve. Instead, we forked `SelectWithInput` into `AwakeningSelectWithInput` and did our work there. `AwakeningSelect` was found to be redundant, so it was removed. * Update hovercards
41 lines
641 B
TypeScript
41 lines
641 B
TypeScript
interface Character {
|
|
type: 'character'
|
|
|
|
id: string
|
|
granblue_id: string
|
|
character_id: readonly number[]
|
|
element: number
|
|
rarity: number
|
|
gender: number
|
|
max_level: number
|
|
name: {
|
|
[key: string]: string
|
|
en: string
|
|
ja: string
|
|
}
|
|
hp: {
|
|
min_hp: number
|
|
max_hp: number
|
|
max_hp_flb: number
|
|
}
|
|
atk: {
|
|
min_atk: number
|
|
max_atk: number
|
|
max_atk_flb: number
|
|
}
|
|
uncap: {
|
|
flb: boolean
|
|
ulb: boolean
|
|
}
|
|
race: {
|
|
race1: number
|
|
race2: number
|
|
}
|
|
proficiency: {
|
|
proficiency1: number
|
|
proficiency2: number
|
|
}
|
|
awakenings: Awakening[]
|
|
position?: number
|
|
special: boolean
|
|
}
|