From 02e35aad83a237107afe0b33f9bd0138a28f7a33 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sun, 25 Feb 2024 23:38:58 -0500 Subject: [PATCH] Update Phaser version --- package-lock.json | 12 ++++++------ src/trainer.ts | 4 ---- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 067f9d5d604..d9789f8efbd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2166,17 +2166,17 @@ "dev": true }, "node_modules/phaser": { - "version": "3.70.0", - "resolved": "https://registry.npmjs.org/phaser/-/phaser-3.70.0.tgz", - "integrity": "sha512-2g+gh+Jp9f/Ho9FOXOYbIJMGf3UZXyMbW2iLScFaLQw11e/LqVyxj/YmaBauWbHabeTnZjiWkPklDnxhesMH0g==", + "version": "3.80.0", + "resolved": "https://registry.npmjs.org/phaser/-/phaser-3.80.0.tgz", + "integrity": "sha512-LUEPFzQKXSlPxrDjFUaeq6t47j1Y58F67OsCKflvDH1DUSwVxAD1/vDUPQJj+dWniKBxAlL1BoCXQnjmtcJxUQ==", "dependencies": { "eventemitter3": "^5.0.1" } }, "node_modules/phaser3-rex-plugins": { - "version": "1.60.10", - "resolved": "https://registry.npmjs.org/phaser3-rex-plugins/-/phaser3-rex-plugins-1.60.10.tgz", - "integrity": "sha512-BiwFPPGSIvPG1jMLCjMd3Im7UrjPmU9103BF//5q9ns/QVbLl54XwoHoR4FYx+iCQEYsUV53x9ABGVPlNETyDQ==", + "version": "1.80.0", + "resolved": "https://registry.npmjs.org/phaser3-rex-plugins/-/phaser3-rex-plugins-1.80.0.tgz", + "integrity": "sha512-OeayvK1rKSKUKs/nGWvMPx/x5AgyaV8WgyyCy5shn84B702yatlt93xLIIii5ER3O5ovqndK6Ne/ARaGsdbiwQ==", "dependencies": { "eventemitter3": "^3.1.2", "i18next": "^22.5.1", diff --git a/src/trainer.ts b/src/trainer.ts index 398a5a46f66..a47c222259f 100644 --- a/src/trainer.ts +++ b/src/trainer.ts @@ -20,10 +20,6 @@ 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())]);