diff --git a/src/components/Tooltip.svelte b/src/components/Tooltip.svelte
index f21fdbb7..c0b155a9 100644
--- a/src/components/Tooltip.svelte
+++ b/src/components/Tooltip.svelte
@@ -31,4 +31,8 @@
@apply p-2 absolute rounded-xl bg-gray-400 border border-gray-800;
@apply text-sm text-background z-10;
}
+
+ i {
+ font-style: normal;
+ }
diff --git a/src/data/weaponList.js b/src/data/weaponList.js
index 9bd40212..07e5db78 100644
--- a/src/data/weaponList.js
+++ b/src/data/weaponList.js
@@ -7089,7 +7089,7 @@ export const weaponList = {
atk: 42,
secondary: 'Energy Recharge',
type: weapons.polearm,
- source: 'wish',
+ source: 'fishing trade',
ascension: [
{
items: [
diff --git a/src/helper.js b/src/helper.js
index 9f7b2205..b3a444a3 100644
--- a/src/helper.js
+++ b/src/helper.js
@@ -5,3 +5,8 @@ export function formatStat(value, type) {
return Math.round(value);
}
+
+export const numberFormat = Intl.NumberFormat('en', {
+ maximumFractionDigits: 1,
+ minimumFractionDigits: 0,
+});
diff --git a/src/routes/weapons/[id].svelte b/src/routes/weapons/[id].svelte
index a7a96135..d882589f 100644
--- a/src/routes/weapons/[id].svelte
+++ b/src/routes/weapons/[id].svelte
@@ -38,21 +38,23 @@
export async function load({ params }) {
const { id } = params;
const weapon = data[id];
- const materials = weaponList[id].ascension[0].items;
+ const ascensions = weaponList[id].ascension;
+ const source = weaponList[id].source;
const recommendedCharacter = getCharacter(id);
- return { props: { id, weapon, materials, recommendedCharacter } };
+ return { props: { id, weapon, recommendedCharacter, source, ascensions } };
}
{$t(`weapon.${weapon.type}`)}
+{source}
{@html weapon.description.replace(/\\n/g, '
')}
- {$t('weapon.asc')} - | -- {$t('weapon.lvl')} - | -- {$t('weapon.baseAtk')} - | - {#if weapon.secondary.name} -- {$t(`weapon.${weapon.secondary.name}`)} - | - {/if} -
{ascen[i]} | - {/if} -{level[i]} | -{Math.round(weapon.atk[index])} | - {#if weapon.secondary.stats} -- {formatStat(weapon.secondary.stats[index], weapon.secondary.name)} - | - {/if} -
+ {$t('weapon.asc')} + | ++ {$t('weapon.lvl')} + | ++ {$t('weapon.baseAtk')} + | + {#if weapon.secondary.name} ++ {$t(`weapon.${weapon.secondary.name}`)} + | + {/if} ++ {$t('weapon.ascensionMaterial')} + | +
{ascen[i]} | + {/if} +{level[i]} | +{Math.round(weapon.atk[index])} | + {#if weapon.secondary.stats} ++ {formatStat(weapon.secondary.stats[index], weapon.secondary.name)} + | + {/if} + {#if [0, 5, 10, 13, 16, 19, 22].includes(i)} +
+
+ {#if ascen[i] > 0}
+ {#each ascensions[ascen[i - 1]].items as obj}
+ ![]() ![]() |
+ {/if}
+