mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-18 22:32:32 +02:00
Fix partner name generation
This commit is contained in:
parent
55e7079c82
commit
e75e6e5224
@ -86,15 +86,15 @@ export default class Trainer extends Phaser.GameObjects.Container {
|
|||||||
[this.name, this.partnerName] = this.name.split(" & ");
|
[this.name, this.partnerName] = this.name.split(" & ");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.partnerNameKey =
|
const partnerGenderKey = i18next.exists(`${classKey}.FEMALE`) ? ".FEMALE" : "";
|
||||||
partnerNameKey ||
|
const partnerTrainerKey = Utils.randSeedItem(
|
||||||
Utils.randSeedItem(
|
|
||||||
Object.keys(
|
Object.keys(
|
||||||
i18next.t(`${classKey}${i18next.exists(`${classKey}.FEMALE`) ? ".FEMALE" : undefined}`, {
|
i18next.t(`${classKey}${partnerGenderKey}`, {
|
||||||
returnObjects: true,
|
returnObjects: true,
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
this.partnerNameKey = `${classKey}${partnerGenderKey}.${partnerTrainerKey}`;
|
||||||
this.partnerName = i18next.t(this.partnerNameKey);
|
this.partnerName = i18next.t(this.partnerNameKey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user