mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-26 09:19:31 +02:00
Remove IntegerHolder (1/2)
This commit is contained in:
parent
9fd5b75026
commit
dd972376d5
@ -1913,7 +1913,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
if (!this.shiny || (!variantData.hasOwnProperty(variantDataIndex) && !variantData.hasOwnProperty(this.species.speciesId))) {
|
if (!this.shiny || (!variantData.hasOwnProperty(variantDataIndex) && !variantData.hasOwnProperty(this.species.speciesId))) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
const rand = new Utils.IntegerHolder(0);
|
const rand = new Utils.NumberHolder(0);
|
||||||
this.scene.executeWithSeedOffset(() => {
|
this.scene.executeWithSeedOffset(() => {
|
||||||
rand.value = Utils.randSeedInt(10);
|
rand.value = Utils.randSeedInt(10);
|
||||||
}, this.id, this.scene.waveSeed);
|
}, this.id, this.scene.waveSeed);
|
||||||
|
Loading…
Reference in New Issue
Block a user