Add Awakening type and remove old defs
We remove the flat list of awakening data, as we will be pulling data from the database
This commit is contained in:
parent
f86a199098
commit
f4dbdceda0
2 changed files with 19 additions and 95 deletions
|
|
@ -1,97 +1,10 @@
|
|||
export type Awakening = {
|
||||
id: number
|
||||
name: {
|
||||
[key: string]: string
|
||||
en: string
|
||||
ja: string
|
||||
}
|
||||
}
|
||||
export const characterAwakening: ItemSkill[] = [
|
||||
{
|
||||
id: 1,
|
||||
granblue_id: '',
|
||||
name: {
|
||||
en: 'Balanced',
|
||||
ja: 'バランス',
|
||||
},
|
||||
slug: 'balanced',
|
||||
minValue: 1,
|
||||
maxValue: 9,
|
||||
fractional: false,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
granblue_id: '',
|
||||
name: {
|
||||
en: 'Attack',
|
||||
ja: '攻撃',
|
||||
},
|
||||
slug: 'attack',
|
||||
minValue: 1,
|
||||
maxValue: 9,
|
||||
fractional: false,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
granblue_id: '',
|
||||
name: {
|
||||
en: 'Defense',
|
||||
ja: '防御',
|
||||
},
|
||||
slug: 'defense',
|
||||
minValue: 1,
|
||||
maxValue: 9,
|
||||
fractional: false,
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
granblue_id: '',
|
||||
name: {
|
||||
en: 'Multiattack',
|
||||
ja: '連続攻撃',
|
||||
},
|
||||
slug: 'multiattack',
|
||||
minValue: 1,
|
||||
maxValue: 9,
|
||||
fractional: false,
|
||||
},
|
||||
]
|
||||
export const MAX_CHARACTER_AWAKENING_LEVEL = 9
|
||||
|
||||
export const weaponAwakening: ItemSkill[] = [
|
||||
{
|
||||
id: 1,
|
||||
granblue_id: '',
|
||||
name: {
|
||||
en: 'Attack',
|
||||
ja: '攻撃',
|
||||
},
|
||||
slug: 'attack',
|
||||
minValue: 1,
|
||||
maxValue: 15,
|
||||
fractional: false,
|
||||
export const NO_AWAKENING: Awakening = {
|
||||
id: '0',
|
||||
name: {
|
||||
en: 'No awakening',
|
||||
jp: '覚醒なし',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
granblue_id: '',
|
||||
name: {
|
||||
en: 'Defense',
|
||||
ja: '防御',
|
||||
},
|
||||
slug: 'defense',
|
||||
minValue: 1,
|
||||
maxValue: 15,
|
||||
fractional: false,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
granblue_id: '',
|
||||
name: {
|
||||
en: 'Special',
|
||||
ja: '特殊',
|
||||
},
|
||||
slug: 'special',
|
||||
minValue: 1,
|
||||
maxValue: 15,
|
||||
fractional: false,
|
||||
},
|
||||
]
|
||||
slug: 'no-awakening',
|
||||
}
|
||||
|
|
|
|||
11
types/Awakening.d.ts
vendored
Normal file
11
types/Awakening.d.ts
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
interface Awakening {
|
||||
id: string
|
||||
name: {
|
||||
[key: string]: string
|
||||
en: string
|
||||
jp: string
|
||||
}
|
||||
slug: string
|
||||
object_type?: string
|
||||
order: number
|
||||
}
|
||||
Loading…
Reference in a new issue