Rename Summon XLB
This commit is contained in:
parent
e31ecf736c
commit
f52fec54b2
5 changed files with 21 additions and 11 deletions
|
|
@ -77,7 +77,7 @@ const HovercardHeader = ({ gridObject, object, type, ...props }: Props) => {
|
||||||
) {
|
) {
|
||||||
suffix = '_02'
|
suffix = '_02'
|
||||||
} else if (
|
} else if (
|
||||||
gridSummon.object.uncap.xlb &&
|
gridSummon.object.uncap.transcendence &&
|
||||||
gridSummon.transcendence_step > 0
|
gridSummon.transcendence_step > 0
|
||||||
) {
|
) {
|
||||||
suffix = '_03'
|
suffix = '_03'
|
||||||
|
|
|
||||||
|
|
@ -318,7 +318,7 @@ const GridRep = ({ party, loading, onClick, onSave }: Props) => {
|
||||||
if (summon) {
|
if (summon) {
|
||||||
// Change the image based on the uncap level
|
// Change the image based on the uncap level
|
||||||
let suffix = ''
|
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) {
|
if (summon.transcendence_step >= 1 && summon.transcendence_step < 5) {
|
||||||
suffix = '_03'
|
suffix = '_03'
|
||||||
} else if (summon.transcendence_step === 5) {
|
} else if (summon.transcendence_step === 5) {
|
||||||
|
|
@ -363,7 +363,10 @@ const GridRep = ({ party, loading, onClick, onSave }: Props) => {
|
||||||
if (summon && gridSummon) {
|
if (summon && gridSummon) {
|
||||||
// Change the image based on the uncap level
|
// Change the image based on the uncap level
|
||||||
let suffix = ''
|
let suffix = ''
|
||||||
if (gridSummon.object.uncap.xlb && gridSummon.uncap_level == 6) {
|
if (
|
||||||
|
<gridSummon className="object uncap transc"></gridSummon> &&
|
||||||
|
gridSummon.uncap_level == 6
|
||||||
|
) {
|
||||||
if (
|
if (
|
||||||
gridSummon.transcendence_step >= 1 &&
|
gridSummon.transcendence_step >= 1 &&
|
||||||
gridSummon.transcendence_step < 5
|
gridSummon.transcendence_step < 5
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,10 @@ const SummonRep = (props: Props) => {
|
||||||
if (mainSummon) {
|
if (mainSummon) {
|
||||||
// Change the image based on the uncap level
|
// Change the image based on the uncap level
|
||||||
let suffix = ''
|
let suffix = ''
|
||||||
if (mainSummon.object.uncap.xlb && mainSummon.uncap_level == 6) {
|
if (
|
||||||
|
mainSummon.object.uncap.transcendence &&
|
||||||
|
mainSummon.uncap_level == 6
|
||||||
|
) {
|
||||||
if (
|
if (
|
||||||
mainSummon.transcendence_step >= 1 &&
|
mainSummon.transcendence_step >= 1 &&
|
||||||
mainSummon.transcendence_step < 5
|
mainSummon.transcendence_step < 5
|
||||||
|
|
@ -123,7 +126,10 @@ const SummonRep = (props: Props) => {
|
||||||
if (summon && gridSummon) {
|
if (summon && gridSummon) {
|
||||||
// Change the image based on the uncap level
|
// Change the image based on the uncap level
|
||||||
let suffix = ''
|
let suffix = ''
|
||||||
if (gridSummon.object.uncap.xlb && gridSummon.uncap_level == 6) {
|
if (
|
||||||
|
gridSummon.object.uncap.transcendence &&
|
||||||
|
gridSummon.uncap_level == 6
|
||||||
|
) {
|
||||||
if (
|
if (
|
||||||
gridSummon.transcendence_step >= 1 &&
|
gridSummon.transcendence_step >= 1 &&
|
||||||
gridSummon.transcendence_step < 5
|
gridSummon.transcendence_step < 5
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ const SummonHovercard = (props: Props) => {
|
||||||
) {
|
) {
|
||||||
suffix = '_02'
|
suffix = '_02'
|
||||||
} else if (
|
} else if (
|
||||||
props.gridSummon.object.uncap.xlb &&
|
props.gridSummon.object.uncap.transcendence &&
|
||||||
props.gridSummon.transcendence_step > 0
|
props.gridSummon.transcendence_step > 0
|
||||||
) {
|
) {
|
||||||
suffix = '_03'
|
suffix = '_03'
|
||||||
|
|
|
||||||
|
|
@ -177,7 +177,10 @@ const SummonUnit = ({
|
||||||
]
|
]
|
||||||
|
|
||||||
let suffix = ''
|
let suffix = ''
|
||||||
if (gridSummon.object.uncap.xlb && gridSummon.uncap_level == 6) {
|
if (
|
||||||
|
gridSummon.object.uncap.transcendence &&
|
||||||
|
gridSummon.uncap_level == 6
|
||||||
|
) {
|
||||||
if (
|
if (
|
||||||
gridSummon.transcendence_step >= 1 &&
|
gridSummon.transcendence_step >= 1 &&
|
||||||
gridSummon.transcendence_step < 5
|
gridSummon.transcendence_step < 5
|
||||||
|
|
@ -320,12 +323,12 @@ const SummonUnit = ({
|
||||||
{contextMenu()}
|
{contextMenu()}
|
||||||
{quickSummon()}
|
{quickSummon()}
|
||||||
{image()}
|
{image()}
|
||||||
{gridSummon ? (
|
{gridSummon && (
|
||||||
<UncapIndicator
|
<UncapIndicator
|
||||||
type="summon"
|
type="summon"
|
||||||
ulb={gridSummon.object.uncap.ulb || false}
|
ulb={gridSummon.object.uncap.ulb || false}
|
||||||
flb={gridSummon.object.uncap.flb || false}
|
flb={gridSummon.object.uncap.flb || false}
|
||||||
xlb={gridSummon.object.uncap.xlb || false}
|
transcendence={gridSummon.object.uncap.transcendence || false}
|
||||||
editable={editable}
|
editable={editable}
|
||||||
uncapLevel={gridSummon.uncap_level}
|
uncapLevel={gridSummon.uncap_level}
|
||||||
transcendenceStage={gridSummon.transcendence_step}
|
transcendenceStage={gridSummon.transcendence_step}
|
||||||
|
|
@ -334,8 +337,6 @@ const SummonUnit = ({
|
||||||
updateTranscendence={passTranscendenceData}
|
updateTranscendence={passTranscendenceData}
|
||||||
special={false}
|
special={false}
|
||||||
/>
|
/>
|
||||||
) : (
|
|
||||||
''
|
|
||||||
)}
|
)}
|
||||||
<h3 className={styles.name}>{summon?.name[locale]}</h3>
|
<h3 className={styles.name}>{summon?.name[locale]}</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue