Rename Summon XLB

This commit is contained in:
Justin Edmund 2024-01-13 11:22:24 -08:00
parent e31ecf736c
commit f52fec54b2
5 changed files with 21 additions and 11 deletions

View file

@ -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'

View file

@ -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 className="object uncap transc"></gridSummon> &&
gridSummon.uncap_level == 6
) {
if (
gridSummon.transcendence_step >= 1 &&
gridSummon.transcendence_step < 5

View file

@ -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

View file

@ -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'

View file

@ -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 && (
<UncapIndicator
type="summon"
ulb={gridSummon.object.uncap.ulb || false}
flb={gridSummon.object.uncap.flb || false}
xlb={gridSummon.object.uncap.xlb || false}
transcendence={gridSummon.object.uncap.transcendence || false}
editable={editable}
uncapLevel={gridSummon.uncap_level}
transcendenceStage={gridSummon.transcendence_step}
@ -334,8 +337,6 @@ const SummonUnit = ({
updateTranscendence={passTranscendenceData}
special={false}
/>
) : (
''
)}
<h3 className={styles.name}>{summon?.name[locale]}</h3>
</div>