From 3a1d41a67662ad2c89922986871db669f4ba577f Mon Sep 17 00:00:00 2001 From: hayuna Date: Fri, 12 Jul 2024 18:24:17 +0200 Subject: [PATCH] [Bug] Fix description of rare candy to have proper amount of level (#2903) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [Bug] Fix description of rare candy to have proper amount of level * Update en locales * Add locales * Add locales * Update src/locales/de/modifier-type.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/modifier-type.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/fr/modifier-type.ts Co-authored-by: Lugiad' * Update src/locales/fr/modifier-type.ts Co-authored-by: Lugiad' * Update src/locales/ko/modifier-type.ts Co-authored-by: Enoch * Update src/locales/ko/modifier-type.ts Co-authored-by: Enoch * Update src/locales/zh_CN/modifier-type.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/zh_CN/modifier-type.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/pt_BR/modifier-type.ts Co-authored-by: José Ricardo Fleury Oliveira * Update src/locales/pt_BR/modifier-type.ts Co-authored-by: José Ricardo Fleury Oliveira * Update modifier-type.ts (IT) * Update src/locales/es/modifier-type.ts Co-authored-by: Arxxer * Update src/locales/es/modifier-type.ts Co-authored-by: Arxxer --------- Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Lugiad' Co-authored-by: Enoch Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: José Ricardo Fleury Oliveira Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> Co-authored-by: Arxxer --- src/locales/de/modifier-type.ts | 4 ++-- src/locales/en/modifier-type.ts | 4 ++-- src/locales/es/modifier-type.ts | 4 ++-- src/locales/fr/modifier-type.ts | 4 ++-- src/locales/it/modifier-type.ts | 4 ++-- src/locales/ko/modifier-type.ts | 4 ++-- src/locales/pt_BR/modifier-type.ts | 4 ++-- src/locales/zh_CN/modifier-type.ts | 4 ++-- src/locales/zh_TW/modifier-type.ts | 4 ++-- src/modifier/modifier-type.ts | 14 ++++++++++++-- 10 files changed, 30 insertions(+), 20 deletions(-) diff --git a/src/locales/de/modifier-type.ts b/src/locales/de/modifier-type.ts index d1019ec4270..d4ea6c0cb15 100644 --- a/src/locales/de/modifier-type.ts +++ b/src/locales/de/modifier-type.ts @@ -58,10 +58,10 @@ export const modifierType: ModifierTypeTranslationEntries = { description: "Erhöht die Stärke aller {{moveType}}-Attacken eines Pokémon um 20%.", }, "PokemonLevelIncrementModifierType": { - description: "Erhöht das Level eines Pokémon um 1.", + description: "Erhöht das Level eines Pokémon um {{levels}}.", }, "AllPokemonLevelIncrementModifierType": { - description: "Erhöht das Level aller Teammitglieder um 1.", + description: "Erhöht das Level aller Teammitglieder um {{levels}}.", }, "PokemonBaseStatBoosterModifierType": { description: "Erhöht den {{statName}} Basiswert des Trägers um 10%. Das Stapellimit erhöht sich, je höher dein IS-Wert ist.", diff --git a/src/locales/en/modifier-type.ts b/src/locales/en/modifier-type.ts index 7bbf89388c4..bbaf9898c05 100644 --- a/src/locales/en/modifier-type.ts +++ b/src/locales/en/modifier-type.ts @@ -58,10 +58,10 @@ export const modifierType: ModifierTypeTranslationEntries = { description: "Increases the power of a Pokémon's {{moveType}}-type moves by 20%.", }, "PokemonLevelIncrementModifierType": { - description: "Increases a Pokémon's level by 1.", + description: "Increases a Pokémon's level by {{levels}}.", }, "AllPokemonLevelIncrementModifierType": { - description: "Increases all party members' level by 1.", + description: "Increases all party members' level by {{levels}}.", }, "PokemonBaseStatBoosterModifierType": { description: "Increases the holder's base {{statName}} by 10%. The higher your IVs, the higher the stack limit.", diff --git a/src/locales/es/modifier-type.ts b/src/locales/es/modifier-type.ts index 5d5ed5ddc5c..8bc2f665d4c 100644 --- a/src/locales/es/modifier-type.ts +++ b/src/locales/es/modifier-type.ts @@ -58,10 +58,10 @@ export const modifierType: ModifierTypeTranslationEntries = { description: "Aumenta la potencia de los movimientos de tipo {{moveType}} de un Pokémon en un 20%.", }, "PokemonLevelIncrementModifierType": { - description: "Aumenta el nivel de un Pokémon en 1.", + description: "Aumenta el nivel de un Pokémon en {{levels}}.", }, "AllPokemonLevelIncrementModifierType": { - description: "Aumenta el nivel de todos los miembros del equipo en 1.", + description: "Aumenta el nivel de todos los miembros del equipo en {{levels}}.", }, "PokemonBaseStatBoosterModifierType": { description: "Aumenta la est. {{statName}} base del portador en un 10%.\nCuanto mayores sean tus IVs, mayor será el límite de acumulación.", diff --git a/src/locales/fr/modifier-type.ts b/src/locales/fr/modifier-type.ts index 498b064de75..8d508179bfd 100644 --- a/src/locales/fr/modifier-type.ts +++ b/src/locales/fr/modifier-type.ts @@ -58,10 +58,10 @@ export const modifierType: ModifierTypeTranslationEntries = { description: "Augmente de 20% la puissance des capacités de type {{moveType}} d’un Pokémon.", }, "PokemonLevelIncrementModifierType": { - description: "Fait monter un Pokémon d’un niveau.", + description: "Fait monter un Pokémon de {{levels}} niveau·x.", }, "AllPokemonLevelIncrementModifierType": { - description: "Fait monter toute l’équipe d’un niveau.", + description: "Fait monter toute l’équipe de {{levels}} niveau·x.", }, "PokemonBaseStatBoosterModifierType": { description: "Augmente de 10% {{statName}} de base de son porteur. Plus les IV sont hauts, plus il peut en porter.", diff --git a/src/locales/it/modifier-type.ts b/src/locales/it/modifier-type.ts index 1d8b0232e70..58d2434ee6a 100644 --- a/src/locales/it/modifier-type.ts +++ b/src/locales/it/modifier-type.ts @@ -58,10 +58,10 @@ export const modifierType: ModifierTypeTranslationEntries = { description: "Aumenta la potenza delle mosse di tipo {{moveType}} del 20% per un Pokémon.", }, "PokemonLevelIncrementModifierType": { - description: "Fa salire un Pokémon di un livello.", + description: "Aumenta il livello di un Pokémon di {{levels}}.", }, "AllPokemonLevelIncrementModifierType": { - description: "Aumenta il livello di tutti i Pokémon nel gruppo di 1.", + description: "Aumenta i livell di tutti i Pokémon della squadra di {{levels}}.", }, "PokemonBaseStatBoosterModifierType": { description: "Aumenta {{statName}} di base del possessore del 10%.", diff --git a/src/locales/ko/modifier-type.ts b/src/locales/ko/modifier-type.ts index 4df6a397fa0..b54ae287413 100644 --- a/src/locales/ko/modifier-type.ts +++ b/src/locales/ko/modifier-type.ts @@ -58,10 +58,10 @@ export const modifierType: ModifierTypeTranslationEntries = { description: "지니게 하면 {{moveType}}타입 기술의 위력이 20% 상승한다.", }, "PokemonLevelIncrementModifierType": { - description: "포켓몬 1마리의 레벨이 1만큼 상승한다.", + description: "포켓몬 1마리의 레벨이 기본 1만큼, 사탕단지의 개수에 따라 최대 {{levels}}까지 상승한다.", }, "AllPokemonLevelIncrementModifierType": { - description: "자신의 모든 포켓몬의 레벨이 1씩 상승한다.", + description: "자신의 모든 포켓몬의 레벨이 기본 1씩, 사탕단지의 개수에 따라 최대 {{levels}}까지 상승한다.", }, "PokemonBaseStatBoosterModifierType": { description: "지니게 하면 {{statName}} 종족값을 10% 올려준다. 개체값이 높을수록 더 많이 누적시킬 수 있다.", diff --git a/src/locales/pt_BR/modifier-type.ts b/src/locales/pt_BR/modifier-type.ts index 408d2757f9b..558d519446c 100644 --- a/src/locales/pt_BR/modifier-type.ts +++ b/src/locales/pt_BR/modifier-type.ts @@ -58,10 +58,10 @@ export const modifierType: ModifierTypeTranslationEntries = { description: "Aumenta o poder dos ataques do tipo {{moveType}} de um Pokémon em 20%.", }, "PokemonLevelIncrementModifierType": { - description: "Aumenta em 1 o nível de um Pokémon.", + description: "Aumenta em {{levels}} o nível de um Pokémon.", }, "AllPokemonLevelIncrementModifierType": { - description: "Aumenta em 1 os níveis de todos os Pokémon.", + description: "Aumenta em {{levels}} o nível de todos os membros da equipe.", }, "PokemonBaseStatBoosterModifierType": { description: "Aumenta o atributo base de {{statName}} em 10%. Quanto maior os IVs, maior o limite de aumento.", diff --git a/src/locales/zh_CN/modifier-type.ts b/src/locales/zh_CN/modifier-type.ts index 539062875f1..4ca1348265f 100644 --- a/src/locales/zh_CN/modifier-type.ts +++ b/src/locales/zh_CN/modifier-type.ts @@ -58,10 +58,10 @@ export const modifierType: ModifierTypeTranslationEntries = { description: "一只宝可梦的{{moveType}}系招式威力提升20%。", }, "PokemonLevelIncrementModifierType": { - description: "一只宝可梦等级提升1级。", + description: "使一只宝可梦的等级提升{{levels}}级。", }, "AllPokemonLevelIncrementModifierType": { - description: "所有成员宝可梦等级提升1级。", + description: "使一只寶可夢的等級提升{{levels}}級。", }, "PokemonBaseStatBoosterModifierType": { description: "增加10%持有者的{{statName}},\n个体值越高堆叠上限越高。", diff --git a/src/locales/zh_TW/modifier-type.ts b/src/locales/zh_TW/modifier-type.ts index bf2032a7feb..715bf781ace 100644 --- a/src/locales/zh_TW/modifier-type.ts +++ b/src/locales/zh_TW/modifier-type.ts @@ -59,10 +59,10 @@ export const modifierType: ModifierTypeTranslationEntries = { description: "一隻寶可夢的{{moveType}}系招式威力提升20%。", }, PokemonLevelIncrementModifierType: { - description: "一隻寶可夢等級提升1級。", + description: "Increases a Pokémon's level by {{levels}}.", }, AllPokemonLevelIncrementModifierType: { - description: "所有成員寶可夢等級提升1級。", + description: "Increases all party members' level by {{levels}}.", }, PokemonBaseStatBoosterModifierType: { description: diff --git a/src/modifier/modifier-type.ts b/src/modifier/modifier-type.ts index 3b43cda6896..63cdca75db4 100644 --- a/src/modifier/modifier-type.ts +++ b/src/modifier/modifier-type.ts @@ -566,7 +566,12 @@ export class PokemonLevelIncrementModifierType extends PokemonModifierType { } getDescription(scene: BattleScene): string { - return i18next.t("modifierType:ModifierType.PokemonLevelIncrementModifierType.description"); + let levels = 1; + const hasCandyJar = scene.modifiers.find(modifier => modifier instanceof Modifiers.LevelIncrementBoosterModifier); + if (hasCandyJar) { + levels += hasCandyJar.stackCount; + } + return i18next.t("modifierType:ModifierType.PokemonLevelIncrementModifierType.description", {levels }); } } @@ -576,7 +581,12 @@ export class AllPokemonLevelIncrementModifierType extends ModifierType { } getDescription(scene: BattleScene): string { - return i18next.t("modifierType:ModifierType.AllPokemonLevelIncrementModifierType.description"); + let levels = 1; + const hasCandyJar = scene.modifiers.find(modifier => modifier instanceof Modifiers.LevelIncrementBoosterModifier); + if (hasCandyJar) { + levels += hasCandyJar.stackCount; + } + return i18next.t("modifierType:ModifierType.AllPokemonLevelIncrementModifierType.description", { levels }); } }