diff --git a/src/lib/components/DailyFruitHint.svelte b/src/lib/components/DailyFruitHint.svelte new file mode 100644 index 0000000..ce9eb63 --- /dev/null +++ b/src/lib/components/DailyFruitHint.svelte @@ -0,0 +1,59 @@ + + + + + + +
+ +
\ No newline at end of file diff --git a/src/lib/components/HintsPanel.svelte b/src/lib/components/HintsPanel.svelte index 935baf5..5c5fde8 100644 --- a/src/lib/components/HintsPanel.svelte +++ b/src/lib/components/HintsPanel.svelte @@ -13,9 +13,9 @@ let showHintAffiliation = false; // Hint availability - indices are available after a certain number of guesses - $: isOriginAvailable = selectedCharacters.length >= 5; - $: isFruitAvailable = selectedCharacters.length >= 10; - $: isAffiliationAvailable = selectedCharacters.length >= 15; + $: isOriginAvailable = selectedCharacters.length >= 3; + $: isFruitAvailable = selectedCharacters.length >= 6; + $: isAffiliationAvailable = selectedCharacters.length >= 9; $: isFrench = $language === 'fr'; function getDisplayOrigin(character: CharacterWithRelations): string | null { @@ -57,8 +57,8 @@

{$t.game.components.hints.origin}

{#if showHintOrigin}

{getDisplayOrigin(dailyCharacter) || $t.game.components.hints.unknown}

- {:else if Math.max(0, 5 - selectedCharacters.length) > 0} -

{Math.max(0, 5 - selectedCharacters.length)} {$t.game.components.hints.beforeUnlock}

+ {:else if Math.max(0, 3 - selectedCharacters.length) > 0} +

{Math.max(0, 3 - selectedCharacters.length)} {$t.game.components.hints.beforeUnlock}

{:else}

{$t.game.components.hints.available}

{/if} @@ -72,8 +72,8 @@

{$t.game.components.hints.devilFruit}

{#if showHintFruit}

{dailyCharacter.devilFruitName || $t.game.components.hints.none}

- {:else if Math.max(0, 10 - selectedCharacters.length) > 0} -

{Math.max(0, 10 - selectedCharacters.length)} {$t.game.components.hints.beforeUnlock}

+ {:else if Math.max(0, 6 - selectedCharacters.length) > 0} +

{Math.max(0, 6 - selectedCharacters.length)} {$t.game.components.hints.beforeUnlock}

{:else}

{$t.game.components.hints.available}

{/if} @@ -87,8 +87,8 @@

{$t.game.components.hints.affiliation}

{#if showHintAffiliation}

{isFrench && dailyCharacter.frAffiliation ? dailyCharacter.frAffiliation : dailyCharacter.affiliation || $t.game.components.hints.unknown}

- {:else if Math.max(0, 15 - selectedCharacters.length) > 0} -

{Math.max(0, 15 - selectedCharacters.length)} {$t.game.components.hints.beforeUnlock}

+ {:else if Math.max(0, 9 - selectedCharacters.length) > 0} +

{Math.max(0, 9 - selectedCharacters.length)} {$t.game.components.hints.beforeUnlock}

{:else}

{$t.game.components.hints.available}

{/if} diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json index 82e3c3a..2c12a50 100644 --- a/src/lib/i18n/en.json +++ b/src/lib/i18n/en.json @@ -160,6 +160,7 @@ "hints": { "origin": "Origin", "devilFruit": "Devil fruit", + "fruitKind": "Fruit type", "affiliation": "Affiliation", "unknown": "Unknown", "none": "None", diff --git a/src/lib/i18n/fr.json b/src/lib/i18n/fr.json index ed86cf2..9f0e96b 100644 --- a/src/lib/i18n/fr.json +++ b/src/lib/i18n/fr.json @@ -160,6 +160,7 @@ "hints": { "origin": "Origine", "devilFruit": "Fruit du demon", + "fruitKind": "Type du fruit", "affiliation": "Affiliation", "unknown": "Inconnue", "none": "Aucun", diff --git a/src/routes/(game)/daily/fruit/+page.svelte b/src/routes/(game)/daily/fruit/+page.svelte index b398f31..3f71ea8 100644 --- a/src/routes/(game)/daily/fruit/+page.svelte +++ b/src/routes/(game)/daily/fruit/+page.svelte @@ -1,7 +1,8 @@