mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-29 04:59:56 +00:00
[Bug] fix sort by cost bug in starter select (#3294)
This commit is contained in:
parent
5d3458b38e
commit
e042dafcec
@ -1966,6 +1966,8 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
|
|||||||
this.starterContainer.forEach(container => {
|
this.starterContainer.forEach(container => {
|
||||||
container.setVisible(false);
|
container.setVisible(false);
|
||||||
|
|
||||||
|
container.cost = this.scene.gameData.getSpeciesStarterValue(container.species.speciesId);
|
||||||
|
|
||||||
// First, ensure you have the caught attributes for the species else default to bigint 0
|
// First, ensure you have the caught attributes for the species else default to bigint 0
|
||||||
const caughtVariants = this.scene.gameData.dexData[container.species.speciesId]?.caughtAttr || BigInt(0);
|
const caughtVariants = this.scene.gameData.dexData[container.species.speciesId]?.caughtAttr || BigInt(0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user