Merge pull request #269 from jedmund/fix-types-granblue-id

Fix types where ItemSelect is used
This commit is contained in:
Justin Edmund 2023-03-16 10:07:08 -07:00 committed by GitHub
commit 84cd4c3c18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 39 additions and 0 deletions

View file

@ -41,6 +41,7 @@ const AwakeningSelect = (props: Props) => {
en: 'No awakening', en: 'No awakening',
ja: '覚醒なし', ja: '覚醒なし',
}, },
granblue_id: '',
slug: 'no-awakening', slug: 'no-awakening',
minValue: 0, minValue: 0,
maxValue: 0, maxValue: 0,

View file

@ -54,6 +54,7 @@ const RingSelect = ({ gridCharacter, sendValues }: Props) => {
ja: 'EXリミットボーナスなし', ja: 'EXリミットボーナスなし',
}, },
id: 0, id: 0,
granblue_id: '',
slug: 'no-bonus', slug: 'no-bonus',
minValue: 0, minValue: 0,
maxValue: 0, maxValue: 0,

View file

@ -9,6 +9,7 @@ export type Awakening = {
export const characterAwakening: ItemSkill[] = [ export const characterAwakening: ItemSkill[] = [
{ {
id: 1, id: 1,
granblue_id: '',
name: { name: {
en: 'Balanced', en: 'Balanced',
ja: 'バランス', ja: 'バランス',
@ -20,6 +21,7 @@ export const characterAwakening: ItemSkill[] = [
}, },
{ {
id: 2, id: 2,
granblue_id: '',
name: { name: {
en: 'Attack', en: 'Attack',
ja: '攻撃', ja: '攻撃',
@ -31,6 +33,7 @@ export const characterAwakening: ItemSkill[] = [
}, },
{ {
id: 3, id: 3,
granblue_id: '',
name: { name: {
en: 'Defense', en: 'Defense',
ja: '防御', ja: '防御',
@ -42,6 +45,7 @@ export const characterAwakening: ItemSkill[] = [
}, },
{ {
id: 4, id: 4,
granblue_id: '',
name: { name: {
en: 'Multiattack', en: 'Multiattack',
ja: '連続攻撃', ja: '連続攻撃',
@ -56,6 +60,7 @@ export const characterAwakening: ItemSkill[] = [
export const weaponAwakening: ItemSkill[] = [ export const weaponAwakening: ItemSkill[] = [
{ {
id: 1, id: 1,
granblue_id: '',
name: { name: {
en: 'Attack', en: 'Attack',
ja: '攻撃', ja: '攻撃',
@ -67,6 +72,7 @@ export const weaponAwakening: ItemSkill[] = [
}, },
{ {
id: 2, id: 2,
granblue_id: '',
name: { name: {
en: 'Defense', en: 'Defense',
ja: '防御', ja: '防御',
@ -78,6 +84,7 @@ export const weaponAwakening: ItemSkill[] = [
}, },
{ {
id: 3, id: 3,
granblue_id: '',
name: { name: {
en: 'Special', en: 'Special',
ja: '特殊', ja: '特殊',

View file

@ -5,6 +5,7 @@ const overMasteryPrimary: ItemSkill[] = [
ja: '攻撃', ja: '攻撃',
}, },
id: 1, id: 1,
granblue_id: '',
slug: 'atk', slug: 'atk',
minValue: 300, minValue: 300,
maxValue: 3000, maxValue: 3000,
@ -18,6 +19,7 @@ const overMasteryPrimary: ItemSkill[] = [
ja: 'HP', ja: 'HP',
}, },
id: 2, id: 2,
granblue_id: '',
slug: 'hp', slug: 'hp',
minValue: 150, minValue: 150,
maxValue: 1500, maxValue: 1500,
@ -34,6 +36,7 @@ const overMasterySecondary: ItemSkill[] = [
ja: '弱体成功率', ja: '弱体成功率',
}, },
id: 3, id: 3,
granblue_id: '',
slug: 'debuff-success', slug: 'debuff-success',
minValue: 6, minValue: 6,
maxValue: 15, maxValue: 15,
@ -47,6 +50,7 @@ const overMasterySecondary: ItemSkill[] = [
ja: 'アビダメ上限', ja: 'アビダメ上限',
}, },
id: 4, id: 4,
granblue_id: '',
slug: 'skill-cap', slug: 'skill-cap',
minValue: 6, minValue: 6,
maxValue: 15, maxValue: 15,
@ -60,6 +64,7 @@ const overMasterySecondary: ItemSkill[] = [
ja: '奥義ダメージ', ja: '奥義ダメージ',
}, },
id: 5, id: 5,
granblue_id: '',
slug: 'ca-dmg', slug: 'ca-dmg',
minValue: 10, minValue: 10,
maxValue: 30, maxValue: 30,
@ -73,6 +78,7 @@ const overMasterySecondary: ItemSkill[] = [
ja: '奥義ダメージ上限', ja: '奥義ダメージ上限',
}, },
id: 6, id: 6,
granblue_id: '',
slug: 'ca-cap', slug: 'ca-cap',
minValue: 6, minValue: 6,
maxValue: 15, maxValue: 15,
@ -86,6 +92,7 @@ const overMasterySecondary: ItemSkill[] = [
ja: '渾身', ja: '渾身',
}, },
id: 7, id: 7,
granblue_id: '',
slug: 'stamina', slug: 'stamina',
minValue: 1, minValue: 1,
maxValue: 10, maxValue: 10,
@ -99,6 +106,7 @@ const overMasterySecondary: ItemSkill[] = [
ja: '背水', ja: '背水',
}, },
id: 8, id: 8,
granblue_id: '',
slug: 'enmity', slug: 'enmity',
minValue: 1, minValue: 1,
maxValue: 10, maxValue: 10,
@ -112,6 +120,7 @@ const overMasterySecondary: ItemSkill[] = [
ja: 'クリティカル確率', ja: 'クリティカル確率',
}, },
id: 9, id: 9,
granblue_id: '',
slug: 'crit', slug: 'crit',
minValue: 10, minValue: 10,
maxValue: 30, maxValue: 30,
@ -128,6 +137,7 @@ const overMasteryTertiary: ItemSkill[] = [
ja: 'ダブルアタック確率', ja: 'ダブルアタック確率',
}, },
id: 10, id: 10,
granblue_id: '',
slug: 'da', slug: 'da',
minValue: 6, minValue: 6,
maxValue: 15, maxValue: 15,
@ -141,6 +151,7 @@ const overMasteryTertiary: ItemSkill[] = [
ja: 'トリプルアタック確率', ja: 'トリプルアタック確率',
}, },
id: 11, id: 11,
granblue_id: '',
slug: 'ta', slug: 'ta',
minValue: 1, minValue: 1,
maxValue: 10, maxValue: 10,
@ -154,6 +165,7 @@ const overMasteryTertiary: ItemSkill[] = [
ja: '防御', ja: '防御',
}, },
id: 12, id: 12,
granblue_id: '',
slug: 'def', slug: 'def',
minValue: 6, minValue: 6,
maxValue: 20, maxValue: 20,
@ -167,6 +179,7 @@ const overMasteryTertiary: ItemSkill[] = [
ja: '回復性能', ja: '回復性能',
}, },
id: 13, id: 13,
granblue_id: '',
slug: 'heal', slug: 'heal',
minValue: 3, minValue: 3,
maxValue: 30, maxValue: 30,
@ -180,6 +193,7 @@ const overMasteryTertiary: ItemSkill[] = [
ja: '弱体耐性', ja: '弱体耐性',
}, },
id: 14, id: 14,
granblue_id: '',
slug: 'debuff-resist', slug: 'debuff-resist',
minValue: 6, minValue: 6,
maxValue: 15, maxValue: 15,
@ -193,6 +207,7 @@ const overMasteryTertiary: ItemSkill[] = [
ja: '回避', ja: '回避',
}, },
id: 15, id: 15,
granblue_id: '',
slug: 'dodge', slug: 'dodge',
minValue: 1, minValue: 1,
maxValue: 10, maxValue: 10,
@ -215,6 +230,7 @@ export const aetherialMastery: ItemSkill[] = [
ja: 'ダブルアタック確率', ja: 'ダブルアタック確率',
}, },
id: 1, id: 1,
granblue_id: '',
slug: 'da', slug: 'da',
minValue: 10, minValue: 10,
maxValue: 17, maxValue: 17,
@ -227,6 +243,7 @@ export const aetherialMastery: ItemSkill[] = [
ja: 'トリプルアタック確率', ja: 'トリプルアタック確率',
}, },
id: 2, id: 2,
granblue_id: '',
slug: 'ta', slug: 'ta',
minValue: 5, minValue: 5,
maxValue: 12, maxValue: 12,
@ -239,6 +256,7 @@ export const aetherialMastery: ItemSkill[] = [
ja: '{属性}攻撃', ja: '{属性}攻撃',
}, },
id: 3, id: 3,
granblue_id: '',
slug: 'element-atk', slug: 'element-atk',
minValue: 15, minValue: 15,
maxValue: 22, maxValue: 22,
@ -251,6 +269,7 @@ export const aetherialMastery: ItemSkill[] = [
ja: '{属性}軽減', ja: '{属性}軽減',
}, },
id: 4, id: 4,
granblue_id: '',
slug: 'element-resist', slug: 'element-resist',
minValue: 5, minValue: 5,
maxValue: 12, maxValue: 12,
@ -263,6 +282,7 @@ export const aetherialMastery: ItemSkill[] = [
ja: '渾身', ja: '渾身',
}, },
id: 5, id: 5,
granblue_id: '',
slug: 'stamina', slug: 'stamina',
minValue: 5, minValue: 5,
maxValue: 12, maxValue: 12,
@ -275,6 +295,7 @@ export const aetherialMastery: ItemSkill[] = [
ja: '背水', ja: '背水',
}, },
id: 6, id: 6,
granblue_id: '',
slug: 'enmity', slug: 'enmity',
minValue: 5, minValue: 5,
maxValue: 12, maxValue: 12,
@ -287,6 +308,7 @@ export const aetherialMastery: ItemSkill[] = [
ja: '与ダメ上昇', ja: '与ダメ上昇',
}, },
id: 7, id: 7,
granblue_id: '',
slug: 'supplemental', slug: 'supplemental',
minValue: 5, minValue: 5,
maxValue: 12, maxValue: 12,
@ -299,6 +321,7 @@ export const aetherialMastery: ItemSkill[] = [
ja: 'クリティカル', ja: 'クリティカル',
}, },
id: 8, id: 8,
granblue_id: '',
slug: 'crit', slug: 'crit',
minValue: 18, minValue: 18,
maxValue: 35, maxValue: 35,
@ -311,6 +334,7 @@ export const aetherialMastery: ItemSkill[] = [
ja: 'カウンター(回避)', ja: 'カウンター(回避)',
}, },
id: 9, id: 9,
granblue_id: '',
slug: 'counter-dodge', slug: 'counter-dodge',
minValue: 5, minValue: 5,
maxValue: 12, maxValue: 12,
@ -323,6 +347,7 @@ export const aetherialMastery: ItemSkill[] = [
ja: 'カウンター(被ダメ)', ja: 'カウンター(被ダメ)',
}, },
id: 10, id: 10,
granblue_id: '',
slug: 'counter-dmg', slug: 'counter-dmg',
minValue: 10, minValue: 10,
maxValue: 17, maxValue: 17,
@ -338,6 +363,7 @@ export const permanentMastery: ItemSkill[] = [
ja: 'LB強化回数上限', ja: 'LB強化回数上限',
}, },
id: 1, id: 1,
granblue_id: '',
slug: 'star-cap', slug: 'star-cap',
minValue: 10, minValue: 10,
maxValue: 10, maxValue: 10,
@ -350,6 +376,7 @@ export const permanentMastery: ItemSkill[] = [
ja: '攻撃', ja: '攻撃',
}, },
id: 2, id: 2,
granblue_id: '',
slug: 'atk', slug: 'atk',
minValue: 10, minValue: 10,
maxValue: 10, maxValue: 10,
@ -362,6 +389,7 @@ export const permanentMastery: ItemSkill[] = [
ja: 'HP', ja: 'HP',
}, },
id: 3, id: 3,
granblue_id: '',
slug: 'hp', slug: 'hp',
minValue: 10, minValue: 10,
maxValue: 10, maxValue: 10,
@ -374,6 +402,7 @@ export const permanentMastery: ItemSkill[] = [
ja: 'ダメージ上限', ja: 'ダメージ上限',
}, },
id: 4, id: 4,
granblue_id: '',
slug: 'dmg-cap', slug: 'dmg-cap',
minValue: 5, minValue: 5,
maxValue: 5, maxValue: 5,

View file

@ -40,6 +40,7 @@ export default function elementalizeAetherialMastery(
elementalized.unshift({ elementalized.unshift({
id: 0, id: 0,
granblue_id: '',
name: { name: {
en: 'No aetherial mastery', en: 'No aetherial mastery',
ja: 'エーテリアルプラス', ja: 'エーテリアルプラス',