update battle-stat,statLevelChangDescription for zh-CN

update battle-stat,statLevelChangDescription for zh-CN.
This commit is contained in:
Rei1mu 2024-05-17 22:45:27 +08:00
parent bfa12fd48d
commit 8c8232d400
18 changed files with 165 additions and 4 deletions

View File

@ -0,0 +1,21 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const battleStat: SimpleTranslationEntries = {
"critical-hit_ratio": "critical-hit ratio",
"Attack": "Attack",
"Defense": "Defense",
"Sp_Atk": "Sp. Atk",
"Sp_Def": "Sp. Def",
"Speed": "Speed",
"Accuracy": "Accuracy",
"Evasiveness": "Evasiveness",
"rose": "rose",
"sharply_rose": "sharply rose",
"rose_drastically": "rose drastically",
"fell": "fell",
"harshly_fell": "harshly fell",
"severly_fell": "severly fell",
"levelChangeDescripion": "'s {{statsFragment}} {{description}}",
"won't_go_any_higher": "won\'t go any higher",
"won't_go_any_lower": "won\'t go any lower"
} as const;

View File

@ -20,6 +20,7 @@ import { tutorial } from "./tutorial";
import { weather } from "./weather"; import { weather } from "./weather";
import { battleMessageUiHandler } from "./battle-message-ui-handler"; import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { berry } from "./berry"; import { berry } from "./berry";
import { battleStat } from "./battle-stat";
export const deConfig = { export const deConfig = {
ability: ability, ability: ability,
@ -46,4 +47,5 @@ export const deConfig = {
weather: weather, weather: weather,
battleMessageUiHandler: battleMessageUiHandler, battleMessageUiHandler: battleMessageUiHandler,
berry: berry, berry: berry,
battleStat: battleStat,
} }

View File

@ -0,0 +1,21 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const battleStat: SimpleTranslationEntries = {
"critical-hit_ratio": "critical-hit ratio",
"Attack": "Attack",
"Defense": "Defense",
"Sp_Atk": "Sp. Atk",
"Sp_Def": "Sp. Def",
"Speed": "Speed",
"Accuracy": "Accuracy",
"Evasiveness": "Evasiveness",
"rose": "rose",
"sharply_rose": "sharply rose",
"rose_drastically": "rose drastically",
"fell": "fell",
"harshly_fell": "harshly fell",
"severly_fell": "severly fell",
"levelChangeDescripion": "'s {{statsFragment}} {{description}}",
"won't_go_any_higher": "won\'t go any higher",
"won't_go_any_lower": "won\'t go any lower"
} as const;

View File

@ -20,6 +20,7 @@ import { tutorial } from "./tutorial";
import { weather } from "./weather"; import { weather } from "./weather";
import { battleMessageUiHandler } from "./battle-message-ui-handler"; import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { berry } from "./berry"; import { berry } from "./berry";
import { battleStat } from "./battle-stat";
export const enConfig = { export const enConfig = {
ability: ability, ability: ability,
@ -46,4 +47,5 @@ export const enConfig = {
weather: weather, weather: weather,
battleMessageUiHandler: battleMessageUiHandler, battleMessageUiHandler: battleMessageUiHandler,
berry: berry, berry: berry,
battleStat: battleStat,
} }

View File

@ -0,0 +1,21 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const battleStat: SimpleTranslationEntries = {
"critical-hit_ratio": "critical-hit ratio",
"Attack": "Attack",
"Defense": "Defense",
"Sp_Atk": "Sp. Atk",
"Sp_Def": "Sp. Def",
"Speed": "Speed",
"Accuracy": "Accuracy",
"Evasiveness": "Evasiveness",
"rose": "rose",
"sharply_rose": "sharply rose",
"rose_drastically": "rose drastically",
"fell": "fell",
"harshly_fell": "harshly fell",
"severly_fell": "severly fell",
"levelChangeDescripion": "'s {{statsFragment}} {{description}}",
"won't_go_any_higher": "won\'t go any higher",
"won't_go_any_lower": "won\'t go any lower"
} as const;

View File

@ -20,6 +20,7 @@ import { tutorial } from "./tutorial";
import { weather } from "./weather"; import { weather } from "./weather";
import { battleMessageUiHandler } from "./battle-message-ui-handler"; import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { berry } from "./berry"; import { berry } from "./berry";
import { battleStat } from "./battle-stat";
export const esConfig = { export const esConfig = {
ability: ability, ability: ability,
@ -46,4 +47,5 @@ export const esConfig = {
weather: weather, weather: weather,
battleMessageUiHandler: battleMessageUiHandler, battleMessageUiHandler: battleMessageUiHandler,
berry: berry, berry: berry,
battleStat: battleStat,
} }

View File

@ -0,0 +1,21 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const battleStat: SimpleTranslationEntries = {
"critical-hit_ratio": "critical-hit ratio",
"Attack": "Attack",
"Defense": "Defense",
"Sp_Atk": "Sp. Atk",
"Sp_Def": "Sp. Def",
"Speed": "Speed",
"Accuracy": "Accuracy",
"Evasiveness": "Evasiveness",
"rose": "rose",
"sharply_rose": "sharply rose",
"rose_drastically": "rose drastically",
"fell": "fell",
"harshly_fell": "harshly fell",
"severly_fell": "severly fell",
"levelChangeDescripion": "'s {{statsFragment}} {{description}}",
"won't_go_any_higher": "won\'t go any higher",
"won't_go_any_lower": "won\'t go any lower"
} as const;

View File

@ -20,6 +20,7 @@ import { tutorial } from "./tutorial";
import { weather } from "./weather"; import { weather } from "./weather";
import { battleMessageUiHandler } from "./battle-message-ui-handler"; import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { berry } from "./berry"; import { berry } from "./berry";
import { battleStat } from "./battle-stat";
export const frConfig = { export const frConfig = {
ability: ability, ability: ability,
@ -46,4 +47,5 @@ export const frConfig = {
weather: weather, weather: weather,
battleMessageUiHandler: battleMessageUiHandler, battleMessageUiHandler: battleMessageUiHandler,
berry: berry, berry: berry,
battleStat: battleStat,
} }

View File

@ -0,0 +1,21 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const battleStat: SimpleTranslationEntries = {
"critical-hit_ratio": "critical-hit ratio",
"Attack": "Attack",
"Defense": "Defense",
"Sp_Atk": "Sp. Atk",
"Sp_Def": "Sp. Def",
"Speed": "Speed",
"Accuracy": "Accuracy",
"Evasiveness": "Evasiveness",
"rose": "rose",
"sharply_rose": "sharply rose",
"rose_drastically": "rose drastically",
"fell": "fell",
"harshly_fell": "harshly fell",
"severly_fell": "severly fell",
"levelChangeDescripion": "'s {{statsFragment}} {{description}}",
"won't_go_any_higher": "won\'t go any higher",
"won't_go_any_lower": "won\'t go any lower"
} as const;

View File

@ -20,6 +20,7 @@ import { tutorial } from "./tutorial";
import { weather } from "./weather"; import { weather } from "./weather";
import { battleMessageUiHandler } from "./battle-message-ui-handler"; import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { berry } from "./berry"; import { berry } from "./berry";
import { battleStat } from "./battle-stat";
export const itConfig = { export const itConfig = {
ability: ability, ability: ability,
@ -46,4 +47,5 @@ export const itConfig = {
weather: weather, weather: weather,
battleMessageUiHandler: battleMessageUiHandler, battleMessageUiHandler: battleMessageUiHandler,
berry: berry, berry: berry,
battleStat: battleStat,
} }

View File

@ -0,0 +1,21 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const battleStat: SimpleTranslationEntries = {
"critical-hit_ratio": "critical-hit ratio",
"Attack": "Attack",
"Defense": "Defense",
"Sp_Atk": "Sp. Atk",
"Sp_Def": "Sp. Def",
"Speed": "Speed",
"Accuracy": "Accuracy",
"Evasiveness": "Evasiveness",
"rose": "rose",
"sharply_rose": "sharply rose",
"rose_drastically": "rose drastically",
"fell": "fell",
"harshly_fell": "harshly fell",
"severly_fell": "severly fell",
"levelChangeDescripion": "'s {{statsFragment}} {{description}}",
"won't_go_any_higher": "won\'t go any higher",
"won't_go_any_lower": "won\'t go any lower"
} as const;

View File

@ -15,6 +15,7 @@ import { starterSelectUiHandler } from "./starter-select-ui-handler";
import { tutorial } from "./tutorial"; import { tutorial } from "./tutorial";
import { weather } from "./weather"; import { weather } from "./weather";
import { berry } from "./berry"; import { berry } from "./berry";
import { battleStat } from "./battle-stat";
export const ptBrConfig = { export const ptBrConfig = {
@ -35,4 +36,5 @@ export const ptBrConfig = {
weather: weather, weather: weather,
modifierType: modifierType, modifierType: modifierType,
berry: berry, berry: berry,
battleStat: battleStat,
} }

View File

@ -0,0 +1,21 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const battleStat: SimpleTranslationEntries = {
"critical-hit_ratio": "暴击率",
"Attack": "攻击",
"Defense": "防御",
"Sp_Atk": "特攻",
"Sp_Def": "特防",
"Speed": "速度",
"Accuracy": "命中率",
"Evasiveness": "闪避率",
"rose": "小幅上升",
"sharply_rose": "大幅上升",
"rose_drastically": "显著上升",
"fell": "小幅降低",
"harshly_fell": "大幅降低",
"severly_fell": "显著降低",
"levelChangeDescripion":"的 {{statsFragment}} {{description}}",
"won_'t_go_any_higher": "无法再上升",
"won_'t_go_any_lower": "无法再降低"
} as const;

View File

@ -20,7 +20,7 @@ import { tutorial } from "./tutorial";
import { weather } from "./weather"; import { weather } from "./weather";
import { battleMessageUiHandler } from "./battle-message-ui-handler"; import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { berry } from "./berry"; import { berry } from "./berry";
import { battleStat } from "./battle-stat";
export const zhCnConfig = { export const zhCnConfig = {
ability: ability, ability: ability,
abilityTriggers: abilityTriggers, abilityTriggers: abilityTriggers,
@ -46,4 +46,5 @@ export const zhCnConfig = {
weather: weather, weather: weather,
battleMessageUiHandler: battleMessageUiHandler, battleMessageUiHandler: battleMessageUiHandler,
berry: berry, berry: berry,
battleStat: battleStat,
} }

View File

@ -52,7 +52,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
description: "接下来的{{battleCount}}场战斗是双打的概率翻倍", description: "接下来的{{battleCount}}场战斗是双打的概率翻倍",
}, },
"TempBattleStatBoosterModifierType": { "TempBattleStatBoosterModifierType": {
description: "为所有成员宝可梦提升一级{{tempBattleStatName}}持续5场战斗", description: "为所有成员宝可梦提升一级{{tempBattleStatName}}\n持续5场战斗",
}, },
"AttackTypeBoosterModifierType": { "AttackTypeBoosterModifierType": {
description: "一只宝可梦的{{moveType}}系招式威力提升20%", description: "一只宝可梦的{{moveType}}系招式威力提升20%",

View File

@ -422,7 +422,7 @@ export class TempBattleStatBoosterModifierType extends ModifierType implements G
} }
getDescription(scene: BattleScene): string { getDescription(scene: BattleScene): string {
return i18next.t(`modifierType:ModifierType.TempBattleStatBoosterModifierType.description`, { tempBattleStatName: getTempBattleStatName(this.tempBattleStat) }); return i18next.t(`modifierType:ModifierType.TempBattleStatBoosterModifierType.description`, { tempBattleStatName: i18next.t(`battleStat:${getTempBattleStatName(this.tempBattleStat).replace(/\./g, '').replace(/[ ]/g, '_')}`) });
} }
getPregenArgs(): any[] { getPregenArgs(): any[] {

View File

@ -2927,7 +2927,7 @@ export class StatChangePhase extends PokemonPhase {
: `${relLevelStats.slice(0, -1).map(s => getBattleStatName(s)).join(', ')}${relLevelStats.length > 2 ? ',' : ''} and ${getBattleStatName(relLevelStats[relLevelStats.length - 1])}`; : `${relLevelStats.slice(0, -1).map(s => getBattleStatName(s)).join(', ')}${relLevelStats.length > 2 ? ',' : ''} and ${getBattleStatName(relLevelStats[relLevelStats.length - 1])}`;
} else } else
statsFragment = getBattleStatName(relLevelStats[0]); statsFragment = getBattleStatName(relLevelStats[0]);
messages.push(getPokemonMessage(this.getPokemon(), `'s ${statsFragment} ${getBattleStatLevelChangeDescription(Math.abs(parseInt(rl)), levels >= 1)}!`)); messages.push(getPokemonMessage(this.getPokemon(), i18next.t('battleStat:levelChangeDescripion', { statsFragment: i18next.t(`battleStat:${statsFragment.replace(/\./g, '').replace(/[ ]/g, '_')}`), description: i18next.t(`battleStat:${getBattleStatLevelChangeDescription(Math.abs(parseInt(rl)), levels >= 1).replace(/\./g, '').replace(/[ ]/g, '_')}`) })));
}); });
return messages; return messages;

View File

@ -150,6 +150,7 @@ declare module 'i18next' {
modifierType: ModifierTypeTranslationEntries; modifierType: ModifierTypeTranslationEntries;
battleMessageUiHandler: SimpleTranslationEntries; battleMessageUiHandler: SimpleTranslationEntries;
berry: BerryTranslationEntries; berry: BerryTranslationEntries;
battleStat:SimpleTranslationEntries;
}; };
} }
} }