Change rare egg move rarity to correlate with egg rarity
parent
eaaa7a2310
commit
585b8c73f6
|
@ -467,9 +467,10 @@ export class EggHatchPhase extends Phase {
|
||||||
for (let s = 0; s < ret.ivs.length; s++)
|
for (let s = 0; s < ret.ivs.length; s++)
|
||||||
ret.ivs[s] = Math.max(ret.ivs[s], secondaryIvs[s]);
|
ret.ivs[s] = Math.max(ret.ivs[s], secondaryIvs[s]);
|
||||||
|
|
||||||
const rand = Utils.randSeedInt(10);
|
this.eggMoveIndex = Utils.randSeedInt(6 * Math.pow(2, 3 - this.egg.tier))
|
||||||
|
? Utils.randSeedInt(3)
|
||||||
|
: 3;
|
||||||
|
|
||||||
this.eggMoveIndex = rand ? Math.floor((rand - 1) / 3) : 3;
|
|
||||||
}, this.egg.id, EGG_SEED.toString());
|
}, this.egg.id, EGG_SEED.toString());
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue