fixed bug

weirdRarity used == instead of =
This commit is contained in:
Magesofthebeach 2020-02-29 16:09:43 -05:00 committed by GitHub
parent 2a88a6a181
commit 58e43ced91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,15 +170,15 @@ export default class PackSimulator extends React.Component {
elseif (this.set === "OP1") { elseif (this.set === "OP1") {
genrarity("Common", 2); genrarity("Common", 2);
let randomWeird = Math.floor(Math.random() * 75) + 1; let randomWeird = Math.floor(Math.random() * 75) + 1;
let weirdRarity == ""; let weirdRarity = "";
if (randomWeird == 75) if (randomWeird = 75)
weirdRarity == "Ultra Rare"; weirdRarity = "Ultra Rare";
else if (randomWeird < 19) else if (randomWeird < 19)
weirdRarity == "Super Rare"; weirdRarity = "Super Rare";
else if (randomWeird < 44) else if (randomWeird < 44)
weirdRarity == "Rare"; weirdRarity = "Rare";
else else
weirdRarity == "Uncommon"; weirdRarity = "Uncommon";
genrarity(weirdRarity, 1); genrarity(weirdRarity, 1);
} }
elseif (this.set === "PE1") { elseif (this.set === "PE1") {