[Localization] localize reward gain with hard-coded numBerries(item count) in ME. (#4379)
* localize hard-coded numBerries
* Update src/locales/zh_CN/battle.json
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* Update src/locales/zh_TW/battle.json
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
* change 'rewardCount' to 'count' (flx's review)
* Apply suggestions from code review - count
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
* Revert "Apply suggestions from code review - count"
This reverts commit 3ce0805a5c
.
* Apply suggestions from code review
Co-authored-by: ImperialSympathizer <110984302+ben-lear@users.noreply.github.com>
* change count to parameter in trash-to-treasure
* change key
---------
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: ImperialSympathizer <110984302+ben-lear@users.noreply.github.com>
This commit is contained in:
parent
9a63a68d25
commit
83c18af50f
|
@ -128,10 +128,10 @@ export const BerriesAboundEncounter: MysteryEncounter =
|
||||||
const numBerries = encounter.misc.numBerries;
|
const numBerries = encounter.misc.numBerries;
|
||||||
|
|
||||||
const doBerryRewards = () => {
|
const doBerryRewards = () => {
|
||||||
const berryText = numBerries + " " + i18next.t(`${namespace}.berries`);
|
const berryText = i18next.t(`${namespace}.berries`);
|
||||||
|
|
||||||
scene.playSound("item_fanfare");
|
scene.playSound("item_fanfare");
|
||||||
queueEncounterMessage(scene, i18next.t("battle:rewardGain", { modifierName: berryText }));
|
queueEncounterMessage(scene, i18next.t("battle:rewardGainCount", { modifierName: berryText, count: numBerries }));
|
||||||
|
|
||||||
// Generate a random berry and give it to the first Pokemon with room for it
|
// Generate a random berry and give it to the first Pokemon with room for it
|
||||||
for (let i = 0; i < numBerries; i++) {
|
for (let i = 0; i < numBerries; i++) {
|
||||||
|
@ -179,10 +179,10 @@ export const BerriesAboundEncounter: MysteryEncounter =
|
||||||
if (speedDiff < 1) {
|
if (speedDiff < 1) {
|
||||||
// Caught and attacked by boss, gets +1 to all stats at start of fight
|
// Caught and attacked by boss, gets +1 to all stats at start of fight
|
||||||
const doBerryRewards = () => {
|
const doBerryRewards = () => {
|
||||||
const berryText = numBerries + " " + i18next.t(`${namespace}.berries`);
|
const berryText = i18next.t(`${namespace}.berries`);
|
||||||
|
|
||||||
scene.playSound("item_fanfare");
|
scene.playSound("item_fanfare");
|
||||||
queueEncounterMessage(scene, i18next.t("battle:rewardGain", { modifierName: berryText }));
|
queueEncounterMessage(scene, i18next.t("battle:rewardGainCount", { modifierName: berryText, count: numBerries }));
|
||||||
|
|
||||||
// Generate a random berry and give it to the first Pokemon with room for it
|
// Generate a random berry and give it to the first Pokemon with room for it
|
||||||
for (let i = 0; i < numBerries; i++) {
|
for (let i = 0; i < numBerries; i++) {
|
||||||
|
@ -210,10 +210,10 @@ export const BerriesAboundEncounter: MysteryEncounter =
|
||||||
const numBerriesGrabbed = Math.max(Math.min(Math.round((speedDiff - 1)/0.08), numBerries), 2);
|
const numBerriesGrabbed = Math.max(Math.min(Math.round((speedDiff - 1)/0.08), numBerries), 2);
|
||||||
encounter.setDialogueToken("numBerries", String(numBerriesGrabbed));
|
encounter.setDialogueToken("numBerries", String(numBerriesGrabbed));
|
||||||
const doFasterBerryRewards = () => {
|
const doFasterBerryRewards = () => {
|
||||||
const berryText = numBerriesGrabbed + " " + i18next.t(`${namespace}.berries`);
|
const berryText = i18next.t(`${namespace}.berries`);
|
||||||
|
|
||||||
scene.playSound("item_fanfare");
|
scene.playSound("item_fanfare");
|
||||||
queueEncounterMessage(scene, i18next.t("battle:rewardGain", { modifierName: berryText }));
|
queueEncounterMessage(scene, i18next.t("battle:rewardGainCount", { modifierName: berryText, count: numBerriesGrabbed }));
|
||||||
|
|
||||||
// Generate a random berry and give it to the first Pokemon with room for it (trying to give to fastest first)
|
// Generate a random berry and give it to the first Pokemon with room for it (trying to give to fastest first)
|
||||||
for (let i = 0; i < numBerriesGrabbed; i++) {
|
for (let i = 0; i < numBerriesGrabbed; i++) {
|
||||||
|
|
|
@ -190,7 +190,7 @@ async function tryApplyDigRewardItems(scene: BattleScene) {
|
||||||
}
|
}
|
||||||
|
|
||||||
scene.playSound("item_fanfare");
|
scene.playSound("item_fanfare");
|
||||||
await showEncounterText(scene, i18next.t("battle:rewardGain", { modifierName: "2x " + leftovers.name }), null, undefined, true);
|
await showEncounterText(scene, i18next.t("battle:rewardGainCount", { modifierName: leftovers.name, count: 2 }), null, undefined, true);
|
||||||
|
|
||||||
// First Shell bell
|
// First Shell bell
|
||||||
for (const pokemon of party) {
|
for (const pokemon of party) {
|
||||||
|
@ -217,7 +217,7 @@ async function tryApplyDigRewardItems(scene: BattleScene) {
|
||||||
}
|
}
|
||||||
|
|
||||||
scene.playSound("item_fanfare");
|
scene.playSound("item_fanfare");
|
||||||
await showEncounterText(scene, i18next.t("battle:rewardGain", { modifierName: "2x " + shellBell.name }), null, undefined, true);
|
await showEncounterText(scene, i18next.t("battle:rewardGainCount", { modifierName: shellBell.name, count: 2 }), null, undefined, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function doGarbageDig(scene: BattleScene) {
|
async function doGarbageDig(scene: BattleScene) {
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
"attackMissed": "Die Attacke hat {{pokemonNameWithAffix}} verfehlt!",
|
"attackMissed": "Die Attacke hat {{pokemonNameWithAffix}} verfehlt!",
|
||||||
"attackHitsCount": "{{count}}-mal getroffen!",
|
"attackHitsCount": "{{count}}-mal getroffen!",
|
||||||
"rewardGain": "Du erhältst {{modifierName}}!",
|
"rewardGain": "Du erhältst {{modifierName}}!",
|
||||||
|
"rewardGainCount": "Du erhältst {{count}} {{modifierName}}!",
|
||||||
"expGain": "{{pokemonName}} erhält {{exp}} Erfahrungspunkte!",
|
"expGain": "{{pokemonName}} erhält {{exp}} Erfahrungspunkte!",
|
||||||
"levelUp": "{{pokemonName}} erreicht Lv. {{level}}!",
|
"levelUp": "{{pokemonName}} erreicht Lv. {{level}}!",
|
||||||
"learnMove": "{{pokemonName}} erlernt {{moveName}}!",
|
"learnMove": "{{pokemonName}} erlernt {{moveName}}!",
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
"attackMissed": "{{pokemonNameWithAffix}} avoided the attack!",
|
"attackMissed": "{{pokemonNameWithAffix}} avoided the attack!",
|
||||||
"attackHitsCount": "Hit {{count}} time(s)!",
|
"attackHitsCount": "Hit {{count}} time(s)!",
|
||||||
"rewardGain": "You received\n{{modifierName}}!",
|
"rewardGain": "You received\n{{modifierName}}!",
|
||||||
|
"rewardGainCount": "You received\n{{count}} {{modifierName}}!",
|
||||||
"expGain": "{{pokemonName}} gained\n{{exp}} EXP. Points!",
|
"expGain": "{{pokemonName}} gained\n{{exp}} EXP. Points!",
|
||||||
"levelUp": "{{pokemonName}} grew to\nLv. {{level}}!",
|
"levelUp": "{{pokemonName}} grew to\nLv. {{level}}!",
|
||||||
"learnMove": "{{pokemonName}} learned\n{{moveName}}!",
|
"learnMove": "{{pokemonName}} learned\n{{moveName}}!",
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
"attackMissed": "¡{{pokemonNameWithAffix}}\nha evitado el ataque!",
|
"attackMissed": "¡{{pokemonNameWithAffix}}\nha evitado el ataque!",
|
||||||
"attackHitsCount": "N.º de golpes: {{count}}.",
|
"attackHitsCount": "N.º de golpes: {{count}}.",
|
||||||
"rewardGain": "¡Has conseguido\n{{modifierName}}!",
|
"rewardGain": "¡Has conseguido\n{{modifierName}}!",
|
||||||
|
"rewardGainCount": "¡Has conseguido\n{{count}} {{modifierName}}!",
|
||||||
"expGain": "{{pokemonName}} ha ganado\n{{exp}} puntos de experiencia.",
|
"expGain": "{{pokemonName}} ha ganado\n{{exp}} puntos de experiencia.",
|
||||||
"levelUp": "¡{{pokemonName}} ha subido a\nNv. {{level}}!",
|
"levelUp": "¡{{pokemonName}} ha subido a\nNv. {{level}}!",
|
||||||
"learnMove": "¡{{pokemonName}} ha aprendido {{moveName}}!",
|
"learnMove": "¡{{pokemonName}} ha aprendido {{moveName}}!",
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
"attackMissed": "{{pokemonNameWithAffix}}\névite l’attaque !",
|
"attackMissed": "{{pokemonNameWithAffix}}\névite l’attaque !",
|
||||||
"attackHitsCount": "Touché {{count}} fois !",
|
"attackHitsCount": "Touché {{count}} fois !",
|
||||||
"rewardGain": "Vous recevez\n{{modifierName}} !",
|
"rewardGain": "Vous recevez\n{{modifierName}} !",
|
||||||
|
"rewardGainCount": "Vous recevez\n{{count}} {{modifierName}} !",
|
||||||
"expGain": "{{pokemonName}} gagne\n{{exp}} Points d’Exp !",
|
"expGain": "{{pokemonName}} gagne\n{{exp}} Points d’Exp !",
|
||||||
"levelUp": "{{pokemonName}} monte au\nN. {{level}} !",
|
"levelUp": "{{pokemonName}} monte au\nN. {{level}} !",
|
||||||
"learnMove": "{{pokemonName}} apprend\n{{moveName}} !",
|
"learnMove": "{{pokemonName}} apprend\n{{moveName}} !",
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
"attackMissed": "{{pokemonNameWithAffix}}\nevita l’attacco!",
|
"attackMissed": "{{pokemonNameWithAffix}}\nevita l’attacco!",
|
||||||
"attackHitsCount": "Colpito {{count}} volta/e!",
|
"attackHitsCount": "Colpito {{count}} volta/e!",
|
||||||
"rewardGain": "Ricevi\n{{modifierName}}!",
|
"rewardGain": "Ricevi\n{{modifierName}}!",
|
||||||
|
"rewardGainCount": "Ricevi\n{{count}} {{modifierName}}!",
|
||||||
"expGain": "{{pokemonName}} ha guadagnato\n{{exp}} Punti Esperienza!",
|
"expGain": "{{pokemonName}} ha guadagnato\n{{exp}} Punti Esperienza!",
|
||||||
"levelUp": "{{pokemonName}} è salito al\nlivello {{level}}!",
|
"levelUp": "{{pokemonName}} è salito al\nlivello {{level}}!",
|
||||||
"learnMove": "{{pokemonName}} impara\n{{moveName}}!",
|
"learnMove": "{{pokemonName}} impara\n{{moveName}}!",
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
"attackMissed": "{{pokemonNameWithAffix}}には 当たらなかった!",
|
"attackMissed": "{{pokemonNameWithAffix}}には 当たらなかった!",
|
||||||
"attackHitsCount": "{{count}}かい 当たった!",
|
"attackHitsCount": "{{count}}かい 当たった!",
|
||||||
"rewardGain": "{{modifierName}}を 手に入れた!",
|
"rewardGain": "{{modifierName}}を 手に入れた!",
|
||||||
|
"rewardGainCount": "{{modifierName}}を {{count}}個 手に入れた!",
|
||||||
"expGain": "{{pokemonName}}は\n{{exp}}経験値を もらった!",
|
"expGain": "{{pokemonName}}は\n{{exp}}経験値を もらった!",
|
||||||
"levelUp": "{{pokemonName}}は\nレベル{{level}}に 上がった!",
|
"levelUp": "{{pokemonName}}は\nレベル{{level}}に 上がった!",
|
||||||
"learnMove": "{{pokemonName}}は 新しく\n{{moveName}}を 覚えた!",
|
"learnMove": "{{pokemonName}}は 新しく\n{{moveName}}を 覚えた!",
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
"attackMissed": "{{pokemonNameWithAffix}}에게는\n맞지 않았다!",
|
"attackMissed": "{{pokemonNameWithAffix}}에게는\n맞지 않았다!",
|
||||||
"attackHitsCount": "{{count}}번 맞았다!",
|
"attackHitsCount": "{{count}}번 맞았다!",
|
||||||
"rewardGain": "{{modifierName}}[[를]] 받았다!",
|
"rewardGain": "{{modifierName}}[[를]] 받았다!",
|
||||||
|
"rewardGainCount": "{{modifierName}}[[를]]\n{{count}}개 손에 넣었다!",
|
||||||
"expGain": "{{pokemonName}}[[는]]\n{{exp}} 경험치를 얻었다!",
|
"expGain": "{{pokemonName}}[[는]]\n{{exp}} 경험치를 얻었다!",
|
||||||
"levelUp": "{{pokemonName}}[[는]]\n레벨 {{level}}[[로]] 올랐다!",
|
"levelUp": "{{pokemonName}}[[는]]\n레벨 {{level}}[[로]] 올랐다!",
|
||||||
"learnMove": "{{pokemonName}}[[는]] 새로\n{{moveName}}[[를]] 배웠다!",
|
"learnMove": "{{pokemonName}}[[는]] 새로\n{{moveName}}[[를]] 배웠다!",
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
"attackMissed": "{{pokemonNameWithAffix}} desviou do ataque!",
|
"attackMissed": "{{pokemonNameWithAffix}} desviou do ataque!",
|
||||||
"attackHitsCount": "Acertou {{count}} vezes.",
|
"attackHitsCount": "Acertou {{count}} vezes.",
|
||||||
"rewardGain": "Você recebeu\n{{modifierName}}!",
|
"rewardGain": "Você recebeu\n{{modifierName}}!",
|
||||||
|
"rewardGainCount": "Você recebeu\n{{count}} {{modifierName}}!",
|
||||||
"expGain": "{{pokemonName}} ganhou\n{{exp}} pontos de experiência.",
|
"expGain": "{{pokemonName}} ganhou\n{{exp}} pontos de experiência.",
|
||||||
"levelUp": "{{pokemonName}} subiu para \nNv. {{level}}!",
|
"levelUp": "{{pokemonName}} subiu para \nNv. {{level}}!",
|
||||||
"learnMove": "{{pokemonName}} aprendeu {{moveName}}!",
|
"learnMove": "{{pokemonName}} aprendeu {{moveName}}!",
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
"attackMissed": "没有命中{{pokemonNameWithAffix}}!",
|
"attackMissed": "没有命中{{pokemonNameWithAffix}}!",
|
||||||
"attackHitsCount": "击中{{count}}次!",
|
"attackHitsCount": "击中{{count}}次!",
|
||||||
"rewardGain": "你获得了\n{{modifierName}}!",
|
"rewardGain": "你获得了\n{{modifierName}}!",
|
||||||
|
"rewardGainCount": "你获得了\n{{count}}个{{modifierName}}!",
|
||||||
"expGain": "{{pokemonName}}获得了{{exp}} 点经验值!",
|
"expGain": "{{pokemonName}}获得了{{exp}} 点经验值!",
|
||||||
"levelUp": "{{pokemonName}}升级到Lv.{{level}}!",
|
"levelUp": "{{pokemonName}}升级到Lv.{{level}}!",
|
||||||
"learnMove": "{{pokemonName}}学会了{{moveName}}!",
|
"learnMove": "{{pokemonName}}学会了{{moveName}}!",
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
"attackMissed": "沒有命中{{pokemonNameWithAffix}}!",
|
"attackMissed": "沒有命中{{pokemonNameWithAffix}}!",
|
||||||
"attackHitsCount": "擊中{{count}}次!",
|
"attackHitsCount": "擊中{{count}}次!",
|
||||||
"rewardGain": "你獲得了\n{{modifierName}}!",
|
"rewardGain": "你獲得了\n{{modifierName}}!",
|
||||||
|
"rewardGainCount": "你獲得了\n{{count}}個{{modifierName}}!",
|
||||||
"expGain": "{{pokemonName}}獲得了{{exp}} 點經驗值!",
|
"expGain": "{{pokemonName}}獲得了{{exp}} 點經驗值!",
|
||||||
"levelUp": "{{pokemonName}}升級到Lv.{{level}}!",
|
"levelUp": "{{pokemonName}}升級到Lv.{{level}}!",
|
||||||
"learnMove": "{{pokemonName}}學會了{{moveName}}!",
|
"learnMove": "{{pokemonName}}學會了{{moveName}}!",
|
||||||
|
|
Loading…
Reference in New Issue