Skip to content

Commit

Permalink
fix occurences where the rate was giving a normal SSR despite the act…
Browse files Browse the repository at this point in the history
…ual rate should return a limited
  • Loading branch information
Spelljinxer committed Sep 14, 2023
1 parent b201664 commit debbd27
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions js/gacha.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,15 @@ function init(data) {
var randomSSR = Math.random();
console.log("randomSSR: " + randomSSR);
if (randomSSR <= SSR_RATE) {

//if randomSSR <= LIMITED_RATE && randomSSR >= PILGRIM_RATE ???????????
if (randomSSR <= LIMITED_RATE) {
rarity = 'SSR';
console.log("You pulled an SSR!");
if (randomSSR <= LIMITED_RATE && randomSSR >= PILGRIM_RATE) {
rarity = 'Limited';
console.log("You pulled the Limited SSR!");
} else if (randomSSR <= PILGRIM_RATE) {
}
if (randomSSR <= PILGRIM_RATE) {
rarity = 'Pilgrim';
console.log("You pulled a Pilgrim SSR!");
} else {
rarity = 'SSR';
}
} else if (randomSSR <= SR_RATE) {
rarity = 'SR';
Expand Down

0 comments on commit debbd27

Please sign in to comment.