mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-25 00:39:27 +02:00
Update pokemon.ts
Good riddance, shiny RNG breaking!
This commit is contained in:
parent
0f13065855
commit
e617017330
@ -1713,10 +1713,13 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
if (!this.shiny || (!variantData.hasOwnProperty(variantDataIndex) && !variantData.hasOwnProperty(this.species.speciesId))) {
|
||||
return 0;
|
||||
}
|
||||
const rand = Utils.randSeedInt(10, undefined, "Random variant selection");
|
||||
if (rand >= 4) {
|
||||
const rand = new Utils.IntegerHolder(0)
|
||||
this.scene.executeWithSeedOffset(() => {
|
||||
rand.value = Utils.randSeedInt(10, undefined, "Random variant selection");
|
||||
}, this.id, this.scene.waveSeed)
|
||||
if (rand.value >= 4) {
|
||||
return 0; // 6/10
|
||||
} else if (rand >= 1) {
|
||||
} else if (rand.value >= 1) {
|
||||
return 1; // 3/10
|
||||
} else {
|
||||
return 2; // 1/10
|
||||
|
Loading…
Reference in New Issue
Block a user