mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-18 06:12:19 +02:00
Merge branch 'main' into pokerogue-battleMessageUiHandler
This commit is contained in:
commit
fb7b587349
@ -7,6 +7,7 @@ import { BattlerTagType } from "./enums/battler-tag-type";
|
|||||||
import { getStatusEffectHealText } from "./status-effect";
|
import { getStatusEffectHealText } from "./status-effect";
|
||||||
import * as Utils from "../utils";
|
import * as Utils from "../utils";
|
||||||
import { DoubleBerryEffectAbAttr, ReduceBerryUseThresholdAbAttr, applyAbAttrs } from "./ability";
|
import { DoubleBerryEffectAbAttr, ReduceBerryUseThresholdAbAttr, applyAbAttrs } from "./ability";
|
||||||
|
import i18next from '../plugins/i18n';
|
||||||
|
|
||||||
export enum BerryType {
|
export enum BerryType {
|
||||||
SITRUS,
|
SITRUS,
|
||||||
@ -22,32 +23,12 @@ export enum BerryType {
|
|||||||
LEPPA
|
LEPPA
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getBerryName(berryType: BerryType) {
|
export function getBerryName(berryType: BerryType): string {
|
||||||
return `${Utils.toReadableString(BerryType[berryType])} Berry`;
|
return i18next.t(`berry:${BerryType[berryType]}.name`);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getBerryEffectDescription(berryType: BerryType) {
|
export function getBerryEffectDescription(berryType: BerryType): string {
|
||||||
switch (berryType) {
|
return i18next.t(`berry:${BerryType[berryType]}.effect`);
|
||||||
case BerryType.SITRUS:
|
|
||||||
return 'Restores 25% HP if HP is below 50%';
|
|
||||||
case BerryType.LUM:
|
|
||||||
return 'Cures any non-volatile status condition and confusion';
|
|
||||||
case BerryType.ENIGMA:
|
|
||||||
return 'Restores 25% HP if hit by a super effective move';
|
|
||||||
case BerryType.LIECHI:
|
|
||||||
case BerryType.GANLON:
|
|
||||||
case BerryType.PETAYA:
|
|
||||||
case BerryType.APICOT:
|
|
||||||
case BerryType.SALAC:
|
|
||||||
const stat = (berryType - BerryType.LIECHI) as BattleStat;
|
|
||||||
return `Raises ${getBattleStatName(stat)} if HP is below 25%`;
|
|
||||||
case BerryType.LANSAT:
|
|
||||||
return 'Raises critical hit ratio if HP is below 25%';
|
|
||||||
case BerryType.STARF:
|
|
||||||
return 'Sharply raises a random stat if HP is below 25%';
|
|
||||||
case BerryType.LEPPA:
|
|
||||||
return 'Restores 10 PP to a move if its PP reaches 0';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type BerryPredicate = (pokemon: Pokemon) => boolean;
|
export type BerryPredicate = (pokemon: Pokemon) => boolean;
|
||||||
|
48
src/locales/de/berry.ts
Normal file
48
src/locales/de/berry.ts
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
import { BerryTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const berry: BerryTranslationEntries = {
|
||||||
|
"SITRUS": {
|
||||||
|
name: "Sitrus Berry",
|
||||||
|
effect: "Restores 25% HP if HP is below 50%",
|
||||||
|
},
|
||||||
|
"LUM": {
|
||||||
|
name: "Lum Berry",
|
||||||
|
effect: "Cures any non-volatile status condition and confusion",
|
||||||
|
},
|
||||||
|
"ENIGMA": {
|
||||||
|
name: "Enigma Berry",
|
||||||
|
effect: "Restores 25% HP if hit by a super effective move",
|
||||||
|
},
|
||||||
|
"LIECHI": {
|
||||||
|
name: "Liechi Berry",
|
||||||
|
effect: "Raises Attack if HP is below 25%",
|
||||||
|
},
|
||||||
|
"GANLON": {
|
||||||
|
name: "Ganlon Berry",
|
||||||
|
effect: "Raises Defense if HP is below 25%",
|
||||||
|
},
|
||||||
|
"PETAYA": {
|
||||||
|
name: "Petaya Berry",
|
||||||
|
effect: "Raises Sp. Atk if HP is below 25%",
|
||||||
|
},
|
||||||
|
"APICOT": {
|
||||||
|
name: "Apicot Berry",
|
||||||
|
effect: "Raises Sp. Def if HP is below 25%",
|
||||||
|
},
|
||||||
|
"SALAC": {
|
||||||
|
name: "Salac Berry",
|
||||||
|
effect: "Raises Speed if HP is below 25%",
|
||||||
|
},
|
||||||
|
"LANSAT": {
|
||||||
|
name: "Lansat Berry",
|
||||||
|
effect: "Raises critical hit ratio if HP is below 25%",
|
||||||
|
},
|
||||||
|
"STARF": {
|
||||||
|
name: "Starf Berry",
|
||||||
|
effect: "Sharply raises a random stat if HP is below 25%",
|
||||||
|
},
|
||||||
|
"LEPPA": {
|
||||||
|
name: "Leppa Berry",
|
||||||
|
effect: "Restores 10 PP to a move if its PP reaches 0",
|
||||||
|
},
|
||||||
|
} as const;
|
@ -19,7 +19,7 @@ import { titles, trainerClasses, trainerNames } from "./trainers";
|
|||||||
import { tutorial } from "./tutorial";
|
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";
|
||||||
|
|
||||||
export const deConfig = {
|
export const deConfig = {
|
||||||
ability: ability,
|
ability: ability,
|
||||||
@ -45,4 +45,5 @@ export const deConfig = {
|
|||||||
tutorial: tutorial,
|
tutorial: tutorial,
|
||||||
weather: weather,
|
weather: weather,
|
||||||
battleMessageUiHandler: battleMessageUiHandler,
|
battleMessageUiHandler: battleMessageUiHandler,
|
||||||
|
berry: berry,
|
||||||
}
|
}
|
@ -12,10 +12,10 @@ export const menu: SimpleTranslationEntries = {
|
|||||||
"loadGame": "Spiel laden",
|
"loadGame": "Spiel laden",
|
||||||
"newGame": "Neues Spiel",
|
"newGame": "Neues Spiel",
|
||||||
"selectGameMode": "Wähle einen Spielmodus",
|
"selectGameMode": "Wähle einen Spielmodus",
|
||||||
"logInOrCreateAccount": "Logge dich ein oder erstelle einen Account zum starten. Keine Email nötig!",
|
"logInOrCreateAccount": "Melde dich an oder erstelle einen Account zum starten. Keine Email nötig!",
|
||||||
"username": "Benutzername",
|
"username": "Benutzername",
|
||||||
"password": "Passwort",
|
"password": "Passwort",
|
||||||
"login": "Einloggen",
|
"login": "Anmelden",
|
||||||
"register": "Registrieren",
|
"register": "Registrieren",
|
||||||
"emptyUsername": "Benutzername darf nicht leer sein",
|
"emptyUsername": "Benutzername darf nicht leer sein",
|
||||||
"invalidLoginUsername": "Der eingegebene Benutzername ist ungültig",
|
"invalidLoginUsername": "Der eingegebene Benutzername ist ungültig",
|
||||||
@ -26,20 +26,20 @@ export const menu: SimpleTranslationEntries = {
|
|||||||
"accountNonExistent": "Der eingegebene Benutzer existiert nicht",
|
"accountNonExistent": "Der eingegebene Benutzer existiert nicht",
|
||||||
"unmatchingPassword": "Das eingegebene Passwort stimmt nicht überein",
|
"unmatchingPassword": "Das eingegebene Passwort stimmt nicht überein",
|
||||||
"passwordNotMatchingConfirmPassword": "Passwort muss mit Bestätigungspasswort übereinstimmen",
|
"passwordNotMatchingConfirmPassword": "Passwort muss mit Bestätigungspasswort übereinstimmen",
|
||||||
"confirmPassword": "Besätige Passwort",
|
"confirmPassword": "Bestätige Passwort",
|
||||||
"registrationAgeWarning": "Mit der Registrierung bestätigen Sie, dass Sie 13 Jahre oder älter sind.",
|
"registrationAgeWarning": "Mit der Registrierung bestätigen Sie, dass Sie 13 Jahre oder älter sind.",
|
||||||
"backToLogin": "Zurück zum Einloggen",
|
"backToLogin": "Zurück zur Anmeldung",
|
||||||
"failedToLoadSaveData": "Speicherdaten konnten nicht geladen werden. Bitte laden Sie die Seite neu.\nWenn dies weiterhin der Fall ist, wenden Sie sich bitte an den Administrator.",
|
"failedToLoadSaveData": "Speicherdaten konnten nicht geladen werden. Bitte laden Sie die Seite neu.\nWenn dies weiterhin der Fall ist, wenden Sie sich bitte an den Administrator.",
|
||||||
"sessionSuccess": "Sitzung erfolgreich geladen.",
|
"sessionSuccess": "Sitzung erfolgreich geladen.",
|
||||||
"failedToLoadSession": "Ihre Sitzungsdaten konnten nicht geladen werden.\nSie könnten beschädigt sein.",
|
"failedToLoadSession": "Ihre Sitzungsdaten konnten nicht geladen werden.\nSie könnten beschädigt sein.",
|
||||||
"boyOrGirl": "Bist du ein Junge oder ein Mädchen?",
|
"boyOrGirl": "Bist du ein Junge oder ein Mädchen?",
|
||||||
"boy": "Junge",
|
"boy": "Junge",
|
||||||
"girl": "Mädchen",
|
"girl": "Mädchen",
|
||||||
"evolving": "What?\n{{pokemonName}} is evolving!",
|
"evolving": "Nanu?\n{{pokemonName}} entwickelt sich!",
|
||||||
"stoppedEvolving": "{{pokemonName}} stopped evolving.",
|
"stoppedEvolving": "Hm? {{pokemonName}} hat die Entwicklung \nabgebrochen.", // "Hm? Entwicklung wurde abgebrochen!" without naming the pokemon seems to be the original.
|
||||||
"pauseEvolutionsQuestion": "Would you like to pause evolutions for {{pokemonName}}?\nEvolutions can be re-enabled from the party screen.",
|
"pauseEvolutionsQuestion": "Die Entwicklung von {{pokemonName}} vorübergehend pausieren?\nEntwicklungen können im Gruppenmenü wieder aktiviert werden.",
|
||||||
"evolutionsPaused": "Evolutions have been paused for {{pokemonName}}.",
|
"evolutionsPaused": "Entwicklung von {{pokemonName}} pausiert.",
|
||||||
"evolutionDone": "Congratulations!\nYour {{pokemonName}} evolved into {{evolvedPokemonName}}!",
|
"evolutionDone": "Glückwunsch!\nDein {{pokemonName}} entwickelte sich zu {{evolvedPokemonName}}!",
|
||||||
"dailyRankings": "Tägliche Rangliste",
|
"dailyRankings": "Tägliche Rangliste",
|
||||||
"weeklyRankings": "Wöchentliche Rangliste",
|
"weeklyRankings": "Wöchentliche Rangliste",
|
||||||
"noRankings": "Keine Rangliste",
|
"noRankings": "Keine Rangliste",
|
||||||
|
48
src/locales/en/berry.ts
Normal file
48
src/locales/en/berry.ts
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
import { BerryTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const berry: BerryTranslationEntries = {
|
||||||
|
"SITRUS": {
|
||||||
|
name: "Sitrus Berry",
|
||||||
|
effect: "Restores 25% HP if HP is below 50%",
|
||||||
|
},
|
||||||
|
"LUM": {
|
||||||
|
name: "Lum Berry",
|
||||||
|
effect: "Cures any non-volatile status condition and confusion",
|
||||||
|
},
|
||||||
|
"ENIGMA": {
|
||||||
|
name: "Enigma Berry",
|
||||||
|
effect: "Restores 25% HP if hit by a super effective move",
|
||||||
|
},
|
||||||
|
"LIECHI": {
|
||||||
|
name: "Liechi Berry",
|
||||||
|
effect: "Raises Attack if HP is below 25%",
|
||||||
|
},
|
||||||
|
"GANLON": {
|
||||||
|
name: "Ganlon Berry",
|
||||||
|
effect: "Raises Defense if HP is below 25%",
|
||||||
|
},
|
||||||
|
"PETAYA": {
|
||||||
|
name: "Petaya Berry",
|
||||||
|
effect: "Raises Sp. Atk if HP is below 25%",
|
||||||
|
},
|
||||||
|
"APICOT": {
|
||||||
|
name: "Apicot Berry",
|
||||||
|
effect: "Raises Sp. Def if HP is below 25%",
|
||||||
|
},
|
||||||
|
"SALAC": {
|
||||||
|
name: "Salac Berry",
|
||||||
|
effect: "Raises Speed if HP is below 25%",
|
||||||
|
},
|
||||||
|
"LANSAT": {
|
||||||
|
name: "Lansat Berry",
|
||||||
|
effect: "Raises critical hit ratio if HP is below 25%",
|
||||||
|
},
|
||||||
|
"STARF": {
|
||||||
|
name: "Starf Berry",
|
||||||
|
effect: "Sharply raises a random stat if HP is below 25%",
|
||||||
|
},
|
||||||
|
"LEPPA": {
|
||||||
|
name: "Leppa Berry",
|
||||||
|
effect: "Restores 10 PP to a move if its PP reaches 0",
|
||||||
|
},
|
||||||
|
} as const;
|
@ -19,6 +19,7 @@ import { titles, trainerClasses, trainerNames } from "./trainers";
|
|||||||
import { tutorial } from "./tutorial";
|
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";
|
||||||
|
|
||||||
export const enConfig = {
|
export const enConfig = {
|
||||||
ability: ability,
|
ability: ability,
|
||||||
@ -44,4 +45,5 @@ export const enConfig = {
|
|||||||
tutorial: tutorial,
|
tutorial: tutorial,
|
||||||
weather: weather,
|
weather: weather,
|
||||||
battleMessageUiHandler: battleMessageUiHandler,
|
battleMessageUiHandler: battleMessageUiHandler,
|
||||||
|
berry: berry,
|
||||||
}
|
}
|
48
src/locales/es/berry.ts
Normal file
48
src/locales/es/berry.ts
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
import { BerryTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const berry: BerryTranslationEntries = {
|
||||||
|
"SITRUS": {
|
||||||
|
name: "Sitrus Berry",
|
||||||
|
effect: "Restores 25% HP if HP is below 50%",
|
||||||
|
},
|
||||||
|
"LUM": {
|
||||||
|
name: "Lum Berry",
|
||||||
|
effect: "Cures any non-volatile status condition and confusion",
|
||||||
|
},
|
||||||
|
"ENIGMA": {
|
||||||
|
name: "Enigma Berry",
|
||||||
|
effect: "Restores 25% HP if hit by a super effective move",
|
||||||
|
},
|
||||||
|
"LIECHI": {
|
||||||
|
name: "Liechi Berry",
|
||||||
|
effect: "Raises Attack if HP is below 25%",
|
||||||
|
},
|
||||||
|
"GANLON": {
|
||||||
|
name: "Ganlon Berry",
|
||||||
|
effect: "Raises Defense if HP is below 25%",
|
||||||
|
},
|
||||||
|
"PETAYA": {
|
||||||
|
name: "Petaya Berry",
|
||||||
|
effect: "Raises Sp. Atk if HP is below 25%",
|
||||||
|
},
|
||||||
|
"APICOT": {
|
||||||
|
name: "Apicot Berry",
|
||||||
|
effect: "Raises Sp. Def if HP is below 25%",
|
||||||
|
},
|
||||||
|
"SALAC": {
|
||||||
|
name: "Salac Berry",
|
||||||
|
effect: "Raises Speed if HP is below 25%",
|
||||||
|
},
|
||||||
|
"LANSAT": {
|
||||||
|
name: "Lansat Berry",
|
||||||
|
effect: "Raises critical hit ratio if HP is below 25%",
|
||||||
|
},
|
||||||
|
"STARF": {
|
||||||
|
name: "Starf Berry",
|
||||||
|
effect: "Sharply raises a random stat if HP is below 25%",
|
||||||
|
},
|
||||||
|
"LEPPA": {
|
||||||
|
name: "Leppa Berry",
|
||||||
|
effect: "Restores 10 PP to a move if its PP reaches 0",
|
||||||
|
},
|
||||||
|
} as const;
|
@ -19,7 +19,7 @@ import { titles, trainerClasses, trainerNames } from "./trainers";
|
|||||||
import { tutorial } from "./tutorial";
|
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";
|
||||||
|
|
||||||
export const esConfig = {
|
export const esConfig = {
|
||||||
ability: ability,
|
ability: ability,
|
||||||
@ -45,4 +45,5 @@ export const esConfig = {
|
|||||||
tutorial: tutorial,
|
tutorial: tutorial,
|
||||||
weather: weather,
|
weather: weather,
|
||||||
battleMessageUiHandler: battleMessageUiHandler,
|
battleMessageUiHandler: battleMessageUiHandler,
|
||||||
|
berry: berry,
|
||||||
}
|
}
|
48
src/locales/fr/berry.ts
Normal file
48
src/locales/fr/berry.ts
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
import { BerryTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const berry: BerryTranslationEntries = {
|
||||||
|
"SITRUS": {
|
||||||
|
name: "Sitrus Berry",
|
||||||
|
effect: "Restores 25% HP if HP is below 50%",
|
||||||
|
},
|
||||||
|
"LUM": {
|
||||||
|
name: "Lum Berry",
|
||||||
|
effect: "Cures any non-volatile status condition and confusion",
|
||||||
|
},
|
||||||
|
"ENIGMA": {
|
||||||
|
name: "Enigma Berry",
|
||||||
|
effect: "Restores 25% HP if hit by a super effective move",
|
||||||
|
},
|
||||||
|
"LIECHI": {
|
||||||
|
name: "Liechi Berry",
|
||||||
|
effect: "Raises Attack if HP is below 25%",
|
||||||
|
},
|
||||||
|
"GANLON": {
|
||||||
|
name: "Ganlon Berry",
|
||||||
|
effect: "Raises Defense if HP is below 25%",
|
||||||
|
},
|
||||||
|
"PETAYA": {
|
||||||
|
name: "Petaya Berry",
|
||||||
|
effect: "Raises Sp. Atk if HP is below 25%",
|
||||||
|
},
|
||||||
|
"APICOT": {
|
||||||
|
name: "Apicot Berry",
|
||||||
|
effect: "Raises Sp. Def if HP is below 25%",
|
||||||
|
},
|
||||||
|
"SALAC": {
|
||||||
|
name: "Salac Berry",
|
||||||
|
effect: "Raises Speed if HP is below 25%",
|
||||||
|
},
|
||||||
|
"LANSAT": {
|
||||||
|
name: "Lansat Berry",
|
||||||
|
effect: "Raises critical hit ratio if HP is below 25%",
|
||||||
|
},
|
||||||
|
"STARF": {
|
||||||
|
name: "Starf Berry",
|
||||||
|
effect: "Sharply raises a random stat if HP is below 25%",
|
||||||
|
},
|
||||||
|
"LEPPA": {
|
||||||
|
name: "Leppa Berry",
|
||||||
|
effect: "Restores 10 PP to a move if its PP reaches 0",
|
||||||
|
},
|
||||||
|
} as const;
|
@ -19,7 +19,7 @@ import { titles, trainerClasses, trainerNames } from "./trainers";
|
|||||||
import { tutorial } from "./tutorial";
|
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";
|
||||||
|
|
||||||
export const frConfig = {
|
export const frConfig = {
|
||||||
ability: ability,
|
ability: ability,
|
||||||
@ -45,4 +45,5 @@ export const frConfig = {
|
|||||||
tutorial: tutorial,
|
tutorial: tutorial,
|
||||||
weather: weather,
|
weather: weather,
|
||||||
battleMessageUiHandler: battleMessageUiHandler,
|
battleMessageUiHandler: battleMessageUiHandler,
|
||||||
|
berry: berry,
|
||||||
}
|
}
|
@ -52,7 +52,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
description: "Double les chances de tomber sur un combat double pendant {{battleCount}} combats",
|
description: "Double les chances de tomber sur un combat double pendant {{battleCount}} combats",
|
||||||
},
|
},
|
||||||
"TempBattleStatBoosterModifierType": {
|
"TempBattleStatBoosterModifierType": {
|
||||||
description: "Augmente d’1 cran {{tempBattleStatName}} pour tout l’équipe pendant 5 combats",
|
description: "Augmente d’1 cran {{tempBattleStatName}} pour toute l’équipe pendant 5 combats",
|
||||||
},
|
},
|
||||||
"AttackTypeBoosterModifierType": {
|
"AttackTypeBoosterModifierType": {
|
||||||
description: "Augmente de 20% la puissance des capacités de type {{moveType}} d’un Pokémon",
|
description: "Augmente de 20% la puissance des capacités de type {{moveType}} d’un Pokémon",
|
||||||
@ -129,7 +129,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
"RARER_CANDY": { name: "Hyper Bonbon" },
|
"RARER_CANDY": { name: "Hyper Bonbon" },
|
||||||
|
|
||||||
"MEGA_BRACELET": { name: "Méga-Bracelet", description: "Débloque les Méga-Gemmes" },
|
"MEGA_BRACELET": { name: "Méga-Bracelet", description: "Débloque les Méga-Gemmes" },
|
||||||
"DYNAMAX_BAND": { name: "Poignet Dynamax", description: "Débloque les Maxi Champis" },
|
"DYNAMAX_BAND": { name: "Poignet Dynamax", description: "Débloque le Dynamax" },
|
||||||
"TERA_ORB": { name: "Orbe Téracristal", description: "Débloque les Téra-Éclats" },
|
"TERA_ORB": { name: "Orbe Téracristal", description: "Débloque les Téra-Éclats" },
|
||||||
|
|
||||||
"MAP": { name: "Carte", description: "Vous permet de choisir votre destination à un croisement" },
|
"MAP": { name: "Carte", description: "Vous permet de choisir votre destination à un croisement" },
|
||||||
@ -264,7 +264,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
"fairy_feather": "Plume Enchantée",
|
"fairy_feather": "Plume Enchantée",
|
||||||
},
|
},
|
||||||
BaseStatBoosterItem: {
|
BaseStatBoosterItem: {
|
||||||
"hp_up": "PP Plus",
|
"hp_up": "PV Plus",
|
||||||
"protein": "Protéine",
|
"protein": "Protéine",
|
||||||
"iron": "Fer",
|
"iron": "Fer",
|
||||||
"calcium": "Calcium",
|
"calcium": "Calcium",
|
||||||
|
@ -81,11 +81,11 @@ export const trainerClasses: SimpleTranslationEntries = {
|
|||||||
"ranger": "Ranger",
|
"ranger": "Ranger",
|
||||||
"restaurant_staff": "Serveurs",
|
"restaurant_staff": "Serveurs",
|
||||||
"rich": "Rich",
|
"rich": "Rich",
|
||||||
"rich_female": "Rich",
|
"rich_female": "Mondaine",
|
||||||
"rich_boy": "Richard",
|
"rich_boy": "Gentleman",
|
||||||
"rich_couple": "Couple de Bourgeois",
|
"rich_couple": "Couple de Bourgeois",
|
||||||
"rich_kid": "Rich Kid",
|
"rich_kid": "Richard",
|
||||||
"rich_kid_female": "Rich Kid",
|
"rich_kid_female": "Mademoiselle",
|
||||||
"rich_kids": "Richards",
|
"rich_kids": "Richards",
|
||||||
"roughneck": "Loubard",
|
"roughneck": "Loubard",
|
||||||
"scientist": "Scientifique",
|
"scientist": "Scientifique",
|
||||||
|
48
src/locales/it/berry.ts
Normal file
48
src/locales/it/berry.ts
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
import { BerryTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const berry: BerryTranslationEntries = {
|
||||||
|
"SITRUS": {
|
||||||
|
name: "Sitrus Berry",
|
||||||
|
effect: "Restores 25% HP if HP is below 50%",
|
||||||
|
},
|
||||||
|
"LUM": {
|
||||||
|
name: "Lum Berry",
|
||||||
|
effect: "Cures any non-volatile status condition and confusion",
|
||||||
|
},
|
||||||
|
"ENIGMA": {
|
||||||
|
name: "Enigma Berry",
|
||||||
|
effect: "Restores 25% HP if hit by a super effective move",
|
||||||
|
},
|
||||||
|
"LIECHI": {
|
||||||
|
name: "Liechi Berry",
|
||||||
|
effect: "Raises Attack if HP is below 25%",
|
||||||
|
},
|
||||||
|
"GANLON": {
|
||||||
|
name: "Ganlon Berry",
|
||||||
|
effect: "Raises Defense if HP is below 25%",
|
||||||
|
},
|
||||||
|
"PETAYA": {
|
||||||
|
name: "Petaya Berry",
|
||||||
|
effect: "Raises Sp. Atk if HP is below 25%",
|
||||||
|
},
|
||||||
|
"APICOT": {
|
||||||
|
name: "Apicot Berry",
|
||||||
|
effect: "Raises Sp. Def if HP is below 25%",
|
||||||
|
},
|
||||||
|
"SALAC": {
|
||||||
|
name: "Salac Berry",
|
||||||
|
effect: "Raises Speed if HP is below 25%",
|
||||||
|
},
|
||||||
|
"LANSAT": {
|
||||||
|
name: "Lansat Berry",
|
||||||
|
effect: "Raises critical hit ratio if HP is below 25%",
|
||||||
|
},
|
||||||
|
"STARF": {
|
||||||
|
name: "Starf Berry",
|
||||||
|
effect: "Sharply raises a random stat if HP is below 25%",
|
||||||
|
},
|
||||||
|
"LEPPA": {
|
||||||
|
name: "Leppa Berry",
|
||||||
|
effect: "Restores 10 PP to a move if its PP reaches 0",
|
||||||
|
},
|
||||||
|
} as const;
|
@ -19,7 +19,7 @@ import { titles, trainerClasses, trainerNames } from "./trainers";
|
|||||||
import { tutorial } from "./tutorial";
|
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";
|
||||||
|
|
||||||
export const itConfig = {
|
export const itConfig = {
|
||||||
ability: ability,
|
ability: ability,
|
||||||
@ -45,4 +45,5 @@ export const itConfig = {
|
|||||||
tutorial: tutorial,
|
tutorial: tutorial,
|
||||||
weather: weather,
|
weather: weather,
|
||||||
battleMessageUiHandler: battleMessageUiHandler,
|
battleMessageUiHandler: battleMessageUiHandler,
|
||||||
|
berry: berry,
|
||||||
}
|
}
|
48
src/locales/pt_BR/berry.ts
Normal file
48
src/locales/pt_BR/berry.ts
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
import { BerryTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const berry: BerryTranslationEntries = {
|
||||||
|
"SITRUS": {
|
||||||
|
name: "Sitrus Berry",
|
||||||
|
effect: "Restores 25% HP if HP is below 50%",
|
||||||
|
},
|
||||||
|
"LUM": {
|
||||||
|
name: "Lum Berry",
|
||||||
|
effect: "Cures any non-volatile status condition and confusion",
|
||||||
|
},
|
||||||
|
"ENIGMA": {
|
||||||
|
name: "Enigma Berry",
|
||||||
|
effect: "Restores 25% HP if hit by a super effective move",
|
||||||
|
},
|
||||||
|
"LIECHI": {
|
||||||
|
name: "Liechi Berry",
|
||||||
|
effect: "Raises Attack if HP is below 25%",
|
||||||
|
},
|
||||||
|
"GANLON": {
|
||||||
|
name: "Ganlon Berry",
|
||||||
|
effect: "Raises Defense if HP is below 25%",
|
||||||
|
},
|
||||||
|
"PETAYA": {
|
||||||
|
name: "Petaya Berry",
|
||||||
|
effect: "Raises Sp. Atk if HP is below 25%",
|
||||||
|
},
|
||||||
|
"APICOT": {
|
||||||
|
name: "Apicot Berry",
|
||||||
|
effect: "Raises Sp. Def if HP is below 25%",
|
||||||
|
},
|
||||||
|
"SALAC": {
|
||||||
|
name: "Salac Berry",
|
||||||
|
effect: "Raises Speed if HP is below 25%",
|
||||||
|
},
|
||||||
|
"LANSAT": {
|
||||||
|
name: "Lansat Berry",
|
||||||
|
effect: "Raises critical hit ratio if HP is below 25%",
|
||||||
|
},
|
||||||
|
"STARF": {
|
||||||
|
name: "Starf Berry",
|
||||||
|
effect: "Sharply raises a random stat if HP is below 25%",
|
||||||
|
},
|
||||||
|
"LEPPA": {
|
||||||
|
name: "Leppa Berry",
|
||||||
|
effect: "Restores 10 PP to a move if its PP reaches 0",
|
||||||
|
},
|
||||||
|
} as const;
|
@ -14,6 +14,7 @@ import { pokemonStat } from "./pokemon-stat";
|
|||||||
import { starterSelectUiHandler } from "./starter-select-ui-handler";
|
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";
|
||||||
|
|
||||||
|
|
||||||
export const ptBrConfig = {
|
export const ptBrConfig = {
|
||||||
@ -33,4 +34,5 @@ export const ptBrConfig = {
|
|||||||
growth: growth,
|
growth: growth,
|
||||||
weather: weather,
|
weather: weather,
|
||||||
modifierType: modifierType,
|
modifierType: modifierType,
|
||||||
|
berry: berry,
|
||||||
}
|
}
|
48
src/locales/zh_CN/berry.ts
Normal file
48
src/locales/zh_CN/berry.ts
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
import { BerryTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
|
export const berry: BerryTranslationEntries = {
|
||||||
|
"SITRUS": {
|
||||||
|
name: "Sitrus Berry",
|
||||||
|
effect: "Restores 25% HP if HP is below 50%",
|
||||||
|
},
|
||||||
|
"LUM": {
|
||||||
|
name: "Lum Berry",
|
||||||
|
effect: "Cures any non-volatile status condition and confusion",
|
||||||
|
},
|
||||||
|
"ENIGMA": {
|
||||||
|
name: "Enigma Berry",
|
||||||
|
effect: "Restores 25% HP if hit by a super effective move",
|
||||||
|
},
|
||||||
|
"LIECHI": {
|
||||||
|
name: "Liechi Berry",
|
||||||
|
effect: "Raises Attack if HP is below 25%",
|
||||||
|
},
|
||||||
|
"GANLON": {
|
||||||
|
name: "Ganlon Berry",
|
||||||
|
effect: "Raises Defense if HP is below 25%",
|
||||||
|
},
|
||||||
|
"PETAYA": {
|
||||||
|
name: "Petaya Berry",
|
||||||
|
effect: "Raises Sp. Atk if HP is below 25%",
|
||||||
|
},
|
||||||
|
"APICOT": {
|
||||||
|
name: "Apicot Berry",
|
||||||
|
effect: "Raises Sp. Def if HP is below 25%",
|
||||||
|
},
|
||||||
|
"SALAC": {
|
||||||
|
name: "Salac Berry",
|
||||||
|
effect: "Raises Speed if HP is below 25%",
|
||||||
|
},
|
||||||
|
"LANSAT": {
|
||||||
|
name: "Lansat Berry",
|
||||||
|
effect: "Raises critical hit ratio if HP is below 25%",
|
||||||
|
},
|
||||||
|
"STARF": {
|
||||||
|
name: "Starf Berry",
|
||||||
|
effect: "Sharply raises a random stat if HP is below 25%",
|
||||||
|
},
|
||||||
|
"LEPPA": {
|
||||||
|
name: "Leppa Berry",
|
||||||
|
effect: "Restores 10 PP to a move if its PP reaches 0",
|
||||||
|
},
|
||||||
|
} as const;
|
@ -19,7 +19,7 @@ import { titles, trainerClasses, trainerNames } from "./trainers";
|
|||||||
import { tutorial } from "./tutorial";
|
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";
|
||||||
|
|
||||||
export const zhCnConfig = {
|
export const zhCnConfig = {
|
||||||
ability: ability,
|
ability: ability,
|
||||||
@ -45,4 +45,5 @@ export const zhCnConfig = {
|
|||||||
tutorial: tutorial,
|
tutorial: tutorial,
|
||||||
weather: weather,
|
weather: weather,
|
||||||
battleMessageUiHandler: battleMessageUiHandler,
|
battleMessageUiHandler: battleMessageUiHandler,
|
||||||
|
berry: berry,
|
||||||
}
|
}
|
@ -46,6 +46,15 @@ export interface ModifierTypeTranslationEntries {
|
|||||||
TeraType: SimpleTranslationEntries,
|
TeraType: SimpleTranslationEntries,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface BerryTranslationEntry {
|
||||||
|
name: string,
|
||||||
|
effect: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface BerryTranslationEntries {
|
||||||
|
[key: string]: BerryTranslationEntry
|
||||||
|
}
|
||||||
|
|
||||||
export interface Localizable {
|
export interface Localizable {
|
||||||
localize(): void;
|
localize(): void;
|
||||||
}
|
}
|
||||||
@ -140,6 +149,7 @@ declare module 'i18next' {
|
|||||||
weather: SimpleTranslationEntries;
|
weather: SimpleTranslationEntries;
|
||||||
modifierType: ModifierTypeTranslationEntries;
|
modifierType: ModifierTypeTranslationEntries;
|
||||||
battleMessageUiHandler: SimpleTranslationEntries;
|
battleMessageUiHandler: SimpleTranslationEntries;
|
||||||
|
berry: BerryTranslationEntries;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user