[i18n] Update party-ui-handler.ts (#4986)

This commit is contained in:
Lugiad 2024-12-16 12:34:14 +01:00 committed by GitHub
parent f6f29f0f66
commit cb719d99a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -362,12 +362,12 @@ export default class PartyUiHandler extends MessageUiHandler {
if (p !== this.transferCursor) { // this skips adding the able/not able labels on the pokemon doing the transfer
if (matchingModifier) { // if matchingModifier exists then the item exists on the new pokemon
if (matchingModifier.getMaxStackCount(this.scene) === matchingModifier.stackCount) { // checks to see if the stack of items is at max stack; if so, set the description label to "Not able"
ableToTransfer = "Not able";
ableToTransfer = i18next.t("partyUiHandler:notAble");
} else { // if the pokemon isn't at max stack, make the label "Able"
ableToTransfer = "Able";
ableToTransfer = i18next.t("partyUiHandler:able");
}
} else { // if matchingModifier doesn't exist, that means the pokemon doesn't have any of the item, and we need to show "Able"
ableToTransfer = "Able";
ableToTransfer = i18next.t("partyUiHandler:able");
}
} else { // this else relates to the transfer pokemon. We set the text to be blank so there's no "Able"/"Not able" text
ableToTransfer = "";