Revert "Update Phaser to 3.80.0 beta 2"
This reverts commit 993ab264e7.
This commit is contained in:
1 parent
993ab264e7
commit
0b70effd02
3 files changed
+12
-8
No files matched your search
@@ -20,6 +20,10 @@ export default class Trainer extends Phaser.GameObjects.Container {
|
||||
this.female = female;
|
||||
this.partyTemplateIndex = Math.min(partyTemplateIndex !== undefined ? partyTemplateIndex : Utils.randSeedWeightedItem(this.config.partyTemplates.map((_, i) => i)),
|
||||
this.config.partyTemplates.length - 1);
|
||||
|
||||
// TODO: Remove when Phaser weightedPick bug is fixed
|
||||
if (isNaN(this.partyTemplateIndex))
|
||||
this.partyTemplateIndex = this.config.partyTemplates.length - 1;
|
||||
|
||||
console.log(Object.keys(trainerPartyTemplates)[Object.values(trainerPartyTemplates).indexOf(this.getPartyTemplate())]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user