Fixed camel case in tera reward

This commit is contained in:
Wlowscha 2025-08-19 08:45:47 +02:00
parent 248224c6d5
commit a29f6c1bc5
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -39,6 +39,7 @@ import type { PokemonMoveSelectFilter, PokemonSelectFilter } from "#ui/party-ui-
import { PartyUiHandler } from "#ui/party-ui-handler";
import { formatMoney, NumberHolder, padInt, randSeedInt, randSeedItem, toDmgValue } from "#utils/common";
import { getEnumKeys, getEnumValues } from "#utils/enums";
import { toCamelCase } from "#utils/strings";
import i18next from "i18next";
/**
@ -422,13 +423,13 @@ export class ChangeTeraTypeReward extends PokemonReward {
get name(): string {
return i18next.t("modifierType:ModifierType.ChangeTeraTypeModifierType.name", {
teraType: i18next.t(`pokemonInfo:Type.${PokemonType[this.teraType]}`),
teraType: i18next.t(`pokemonInfo:type.${toCamelCase(PokemonType[this.teraType])}`),
});
}
getDescription(): string {
return i18next.t("modifierType:ModifierType.ChangeTeraTypeModifierType.description", {
teraType: i18next.t(`pokemonInfo:Type.${PokemonType[this.teraType]}`),
teraType: i18next.t(`pokemonInfo:type.${toCamelCase(PokemonType[this.teraType])}`),
});
}