From 4ae4dce39a940092d563df45365ae00b0e982c84 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 2 Feb 2023 03:19:10 -0800 Subject: [PATCH] Show transcendence art and stage in summon hovercard --- components/SummonHovercard/index.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/components/SummonHovercard/index.tsx b/components/SummonHovercard/index.tsx index 1a7f8b4f..1921b903 100644 --- a/components/SummonHovercard/index.tsx +++ b/components/SummonHovercard/index.tsx @@ -16,6 +16,7 @@ import './index.scss' interface Props { gridSummon: GridSummon children: React.ReactNode + side?: 'top' | 'right' | 'bottom' | 'left' onTriggerClick: () => void } @@ -57,8 +58,14 @@ const SummonHovercard = (props: Props) => { if ( upgradedSummons.indexOf(summon.granblue_id.toString()) != -1 && props.gridSummon.uncap_level == 5 - ) + ) { suffix = '_02' + } else if ( + props.gridSummon.object.uncap.xlb && + props.gridSummon.transcendence_step > 0 + ) { + suffix = '_03' + } // Generate the correct source for the summon imgSrc = `${process.env.NEXT_PUBLIC_SIERO_IMG_URL}/summon-grid/${summon.granblue_id}${suffix}.jpg` @@ -81,7 +88,7 @@ const SummonHovercard = (props: Props) => { {props.children} - +

{props.gridSummon.object.name[locale]}

@@ -100,6 +107,8 @@ const SummonHovercard = (props: Props) => { type="summon" ulb={props.gridSummon.object.uncap.ulb || false} flb={props.gridSummon.object.uncap.flb || false} + xlb={props.gridSummon.object.uncap.xlb || false} + transcendenceStage={props.gridSummon.transcendence_step} special={false} />