Don't display trainer title if undefined

pull/14/head
Flashfyre 2024-02-05 23:56:21 -05:00
parent 6cff22a9fc
commit 89854691f0
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ export default class Trainer extends Phaser.GameObjects.Container {
getName(includeTitle: boolean = false): string { getName(includeTitle: boolean = false): string {
let name = this.config.getName(this.female); let name = this.config.getName(this.female);
return includeTitle ? `${this.config.title} ${name}` : name; return includeTitle && this.config.title ? `${this.config.title} ${name}` : name;
} }
getBattleBgm(): string { getBattleBgm(): string {