Remove IntegerHolder (1/2)

This commit is contained in:
RedstonewolfX 2024-09-24 20:26:59 -04:00 committed by GitHub
parent 9fd5b75026
commit dd972376d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1913,7 +1913,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
if (!this.shiny || (!variantData.hasOwnProperty(variantDataIndex) && !variantData.hasOwnProperty(this.species.speciesId))) {
return 0;
}
const rand = new Utils.IntegerHolder(0);
const rand = new Utils.NumberHolder(0);
this.scene.executeWithSeedOffset(() => {
rand.value = Utils.randSeedInt(10);
}, this.id, this.scene.waveSeed);