Fix not passing trainer name when loading data

pull/18/head
Flashfyre 2024-03-26 21:21:27 -04:00
parent a33f54b7cb
commit c0b1724b1e
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ export const splashMessages = [
'Broken Egg Moves!',
'Mubstitute!',
'That\'s Crazy!',
'Orance Juice!',
'Questionable Balancing!',
'Sudden Difficulty Spikes!',
'Based on an Unfinished Flash Game!',

View File

@ -19,6 +19,6 @@ export default class TrainerData {
}
toTrainer(scene: BattleScene): Trainer {
return new Trainer(scene, this.trainerType, this.variant, this.partyTemplateIndex);
return new Trainer(scene, this.trainerType, this.variant, this.partyTemplateIndex, this.name, this.partnerName);
}
}