Oops
parent
17fe2ba597
commit
65126fa464
|
@ -343,7 +343,7 @@ export default class EggGachaUiHandler extends MessageUiHandler {
|
||||||
eggs = [];
|
eggs = [];
|
||||||
const tierValueOffset = this.gachaCursor === GachaType.LEGENDARY ? 1 : 0;
|
const tierValueOffset = this.gachaCursor === GachaType.LEGENDARY ? 1 : 0;
|
||||||
const tiers = new Array(pullCount).fill(null).map(() => {
|
const tiers = new Array(pullCount).fill(null).map(() => {
|
||||||
const tierValue = Utils.randInt(1024);
|
const tierValue = Utils.randInt(256);
|
||||||
return tierValue >= 52 + tierValueOffset ? EggTier.COMMON : tierValue + tierValueOffset >= 8 ? EggTier.GREAT : tierValue >= 1 + tierValueOffset ? EggTier.ULTRA : EggTier.MASTER;
|
return tierValue >= 52 + tierValueOffset ? EggTier.COMMON : tierValue + tierValueOffset >= 8 ? EggTier.GREAT : tierValue >= 1 + tierValueOffset ? EggTier.ULTRA : EggTier.MASTER;
|
||||||
});
|
});
|
||||||
if (pullCount >= 25 && !tiers.filter(t => t >= EggTier.ULTRA).length)
|
if (pullCount >= 25 && !tiers.filter(t => t >= EggTier.ULTRA).length)
|
||||||
|
|
Loading…
Reference in New Issue