From f52fec54b2379afde58ab3430fe3d2528ec0e5be Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 13 Jan 2024 11:22:24 -0800 Subject: [PATCH] Rename Summon XLB --- components/HovercardHeader/index.tsx | 2 +- components/reps/GridRep/index.tsx | 7 +++++-- components/reps/SummonRep/index.tsx | 10 ++++++++-- components/summon/SummonHovercard/index.tsx | 2 +- components/summon/SummonUnit/index.tsx | 11 ++++++----- 5 files changed, 21 insertions(+), 11 deletions(-) diff --git a/components/HovercardHeader/index.tsx b/components/HovercardHeader/index.tsx index 03266ab1..7af01f09 100644 --- a/components/HovercardHeader/index.tsx +++ b/components/HovercardHeader/index.tsx @@ -77,7 +77,7 @@ const HovercardHeader = ({ gridObject, object, type, ...props }: Props) => { ) { suffix = '_02' } else if ( - gridSummon.object.uncap.xlb && + gridSummon.object.uncap.transcendence && gridSummon.transcendence_step > 0 ) { suffix = '_03' diff --git a/components/reps/GridRep/index.tsx b/components/reps/GridRep/index.tsx index 869ac04d..217e30fa 100644 --- a/components/reps/GridRep/index.tsx +++ b/components/reps/GridRep/index.tsx @@ -318,7 +318,7 @@ const GridRep = ({ party, loading, onClick, onSave }: Props) => { if (summon) { // Change the image based on the uncap level let suffix = '' - if (summon.object.uncap.xlb && summon.uncap_level == 6) { + if (summon.object.uncap.transcendence && summon.uncap_level == 6) { if (summon.transcendence_step >= 1 && summon.transcendence_step < 5) { suffix = '_03' } else if (summon.transcendence_step === 5) { @@ -363,7 +363,10 @@ const GridRep = ({ party, loading, onClick, onSave }: Props) => { if (summon && gridSummon) { // Change the image based on the uncap level let suffix = '' - if (gridSummon.object.uncap.xlb && gridSummon.uncap_level == 6) { + if ( + && + gridSummon.uncap_level == 6 + ) { if ( gridSummon.transcendence_step >= 1 && gridSummon.transcendence_step < 5 diff --git a/components/reps/SummonRep/index.tsx b/components/reps/SummonRep/index.tsx index 0ed63c0b..da78510a 100644 --- a/components/reps/SummonRep/index.tsx +++ b/components/reps/SummonRep/index.tsx @@ -70,7 +70,10 @@ const SummonRep = (props: Props) => { if (mainSummon) { // Change the image based on the uncap level let suffix = '' - if (mainSummon.object.uncap.xlb && mainSummon.uncap_level == 6) { + if ( + mainSummon.object.uncap.transcendence && + mainSummon.uncap_level == 6 + ) { if ( mainSummon.transcendence_step >= 1 && mainSummon.transcendence_step < 5 @@ -123,7 +126,10 @@ const SummonRep = (props: Props) => { if (summon && gridSummon) { // Change the image based on the uncap level let suffix = '' - if (gridSummon.object.uncap.xlb && gridSummon.uncap_level == 6) { + if ( + gridSummon.object.uncap.transcendence && + gridSummon.uncap_level == 6 + ) { if ( gridSummon.transcendence_step >= 1 && gridSummon.transcendence_step < 5 diff --git a/components/summon/SummonHovercard/index.tsx b/components/summon/SummonHovercard/index.tsx index 8672fc96..d001f49e 100644 --- a/components/summon/SummonHovercard/index.tsx +++ b/components/summon/SummonHovercard/index.tsx @@ -60,7 +60,7 @@ const SummonHovercard = (props: Props) => { ) { suffix = '_02' } else if ( - props.gridSummon.object.uncap.xlb && + props.gridSummon.object.uncap.transcendence && props.gridSummon.transcendence_step > 0 ) { suffix = '_03' diff --git a/components/summon/SummonUnit/index.tsx b/components/summon/SummonUnit/index.tsx index c668ae59..3c77e1d8 100644 --- a/components/summon/SummonUnit/index.tsx +++ b/components/summon/SummonUnit/index.tsx @@ -177,7 +177,10 @@ const SummonUnit = ({ ] let suffix = '' - if (gridSummon.object.uncap.xlb && gridSummon.uncap_level == 6) { + if ( + gridSummon.object.uncap.transcendence && + gridSummon.uncap_level == 6 + ) { if ( gridSummon.transcendence_step >= 1 && gridSummon.transcendence_step < 5 @@ -320,12 +323,12 @@ const SummonUnit = ({ {contextMenu()} {quickSummon()} {image()} - {gridSummon ? ( + {gridSummon && ( - ) : ( - '' )}

{summon?.name[locale]}