diff --git a/src/data/friendshipExp.js b/src/data/friendshipExp.js new file mode 100644 index 00000000..677ba013 --- /dev/null +++ b/src/data/friendshipExp.js @@ -0,0 +1,105 @@ +export const friendshipExp = [1000, 1550, 2050, 2600, 3175, 3750, 4350, 4975, 5650]; + +export const commissionExp = [ + 25, + 25, + 25, + 25, + 30, + 30, + 30, + 30, + 30, + 35, + 35, + 35, + 35, + 35, + 35, + 35, + 35, + 35, + 35, + 40, + 40, + 40, + 40, + 40, + 45, + 45, + 45, + 45, + 45, + 50, + 50, + 50, + 50, + 50, + 50, + 50, + 50, + 50, + 50, + 55, + 55, + 55, + 55, + 55, + 60, + 60, + 60, + 60, + 60, +]; + +export const commissionBonusExp = [ + 45, + 45, + 45, + 45, + 55, + 55, + 55, + 55, + 55, + 55, + 55, + 55, + 55, + 65, + 65, + 65, + 65, + 65, + 70, + 70, + 70, + 70, + 70, + 75, + 75, + 75, + 75, + 75, + 75, + 85, + 85, + 85, + 85, + 85, + 85, + 85, + 85, + 85, + 85, + 95, + 95, + 95, + 95, + 95, + 100, + 100, + 100, + 100, + 100, +]; diff --git a/src/locales/en.json b/src/locales/en.json index d2ddc6ec..c296eb38 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -371,6 +371,7 @@ "titleWeapon": "Weapon Calculator", "titleCharacter": "Character Calculator", "titleResin": "Resin Calculator", + "titleFriendship": "Friendship Exp Calculator", "goto": "Go To {where}", "howToUse": "How to Use", "guide": { @@ -450,6 +451,17 @@ "hours": "hours", "minutes": "minutes", "seconds": "seconds" + }, + "friendship": { + "currentLevel": "Current Friendship Level", + "currentExp": "Current Exp Bar (Drag the Bar)", + "randomEventFarm": "How many Random Event you farm everyday?", + "calculate": "Calculate", + "based": "Based on AR:{ar}", + "change": "(change on settings)", + "result": "To reach Friendship level 10 if you complete all daily commission and use 180 resin everyday", + "resultSerenitea": "If you also place the character in the Serenitea Pot (Max Adeptal Energy)", + "resultDay": "{result} Days" } }, "items": { diff --git a/src/locales/id.json b/src/locales/id.json index 72840f1a..9670256e 100644 --- a/src/locales/id.json +++ b/src/locales/id.json @@ -413,6 +413,17 @@ "hours": "jam", "minutes": "menit", "seconds": "detik" + }, + "friendship": { + "currentLevel": "Friendship Level Sekarang", + "currentExp": "Exp Bar Sekarang (Drag Bar-nya)", + "randomEventFarm": "Berapa banyak Random Event yang kamu farm tiap hari?", + "calculate": "Hitung", + "based": "Berdasarkan AR:{ar}", + "change": "(ganti di settings)", + "result": "Untuk mencapai Friendship level 10 jika kamu menyelesaikan semua daily commission dan menggunakan 180 resin tiap hari", + "resultSerenitea": "Jika kamu juga menaruh karakternya di Serenitea Pot (Adeptal Energy Max)", + "resultDay": "{result} Hari" } }, "items": { diff --git a/src/routes/calculator/_friendship.svelte b/src/routes/calculator/_friendship.svelte new file mode 100644 index 00000000..e32826a7 --- /dev/null +++ b/src/routes/calculator/_friendship.svelte @@ -0,0 +1,126 @@ + + +
+
+
+ +

{$t('calculator.friendship.randomEventFarm')}

+
+ +

{randomEvent}

+ +
+
+
+ + {#if !changed} +
+

{$t('calculator.friendship.based', { values: { ar: $ar } })}

+ + + + + + + + + +
+ {$t('calculator.friendship.resultDay', { values: { result } })} + {$t('calculator.friendship.result')}
+ {$t('calculator.friendship.resultDay', { values: { result: resultSerenitea } })} + {$t('calculator.friendship.resultSerenitea')}
+
+ {/if} +
+
+
+ + diff --git a/src/routes/calculator/index.svelte b/src/routes/calculator/index.svelte index 86335b6c..7700d15a 100644 --- a/src/routes/calculator/index.svelte +++ b/src/routes/calculator/index.svelte @@ -8,6 +8,7 @@ import CharacterCalculator from './_character.svelte'; import LevelUpTable from './_characterTable.svelte'; import ResinCalculator from './_resin.svelte'; + import FriendshipCalculator from './_friendship.svelte'; import ResinTable from './_resinTable.svelte'; import Button from '../../components/Button.svelte'; import Icon from '../../components/Icon.svelte'; @@ -113,6 +114,21 @@ +
+ +

+ {$t('calculator.titleFriendship')} +

+
+