hensei-web/types/Weapon.d.ts
Justin Edmund 0ebd1a6c66
Update awakening (#315)
* 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
2023-06-19 00:46:03 -07:00

37 lines
601 B
TypeScript

interface Weapon {
type: 'weapon'
id: string
granblue_id: number
element: number
proficiency: number
max_level: number
max_skill_level: number
max_awakening_level: number
series: number
ax: boolean
ax_type: number
awakenings: Awakening[]
name: {
[key: string]: string
en: string
ja: string
}
hp: {
min_hp: number
max_hp: number
max_hp_flb: number
max_hp_ulb: number
}
atk: {
min_atk: number
max_atk: number
max_atk_flb: number
max_atk_ulb: number
}
uncap: {
flb: boolean
ulb: boolean
}
position?: number
}