{updatedInstance.nickname || updatedInstance.typeId}

{updatedInstance.nickname
Level {updatedInstance.level} {#if updatedInstance.level < 100} {xpTowardsNext.current}/{xpTowardsNext.needed} to next level {:else} MAX LEVEL {/if}
HP
{updatedInstance.currentHp}/{updatedInstance.maxHp}
{#if updatedInstance.level < 100}
XP
{xpTowardsNext.current}/{xpTowardsNext.needed}
{:else}
XP
MAX LEVEL
{/if}
{#if selectedTab === 'about'}

{instance.description}

Stats

Attack {updatedInstance.attack}
Defense {updatedInstance.defense}
Field Attack {updatedInstance.fieldAttack}
Field Defense {updatedInstance.fieldDefense}
Speed {updatedInstance.speed}
BST {updatedInstance.bst}
Tier {updatedInstance.tier.toUpperCase()}
{:else if selectedTab === 'abilities'}

Special Ability

{#if isSpecialAbilityUnlocked(updatedInstance.specialAbilityUnlockLevel, updatedInstance.level)} {:else}
🔒 Unlocks at Level {updatedInstance.specialAbilityUnlockLevel}

{updatedInstance.specialAbility.name}

This special ability will be unlocked when {updatedInstance.nickname} reaches level {updatedInstance.specialAbilityUnlockLevel}.

{/if}

Moves

{#each updatedInstance.moves as move, index} {#if move.unlockLevel <= updatedInstance.level} {:else}
🔒 Unlocks at Level {move.unlockLevel}

{move.name}

This move will be unlocked when {updatedInstance.nickname} reaches level {move.unlockLevel}.

{/if} {/each}
{/if}