From 58e43ced9199cd0287b5656193bd77a19e8d120b Mon Sep 17 00:00:00 2001 From: Magesofthebeach <53281653+Magesofthebeach@users.noreply.github.com> Date: Sat, 29 Feb 2020 16:09:43 -0500 Subject: [PATCH] fixed bug weirdRarity used == instead of = --- src/components/entercode/PackSimulator.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/entercode/PackSimulator.js b/src/components/entercode/PackSimulator.js index 08a3556..d03c8bc 100644 --- a/src/components/entercode/PackSimulator.js +++ b/src/components/entercode/PackSimulator.js @@ -170,15 +170,15 @@ export default class PackSimulator extends React.Component { elseif (this.set === "OP1") { genrarity("Common", 2); let randomWeird = Math.floor(Math.random() * 75) + 1; - let weirdRarity == ""; - if (randomWeird == 75) - weirdRarity == "Ultra Rare"; + let weirdRarity = ""; + if (randomWeird = 75) + weirdRarity = "Ultra Rare"; else if (randomWeird < 19) - weirdRarity == "Super Rare"; + weirdRarity = "Super Rare"; else if (randomWeird < 44) - weirdRarity == "Rare"; + weirdRarity = "Rare"; else - weirdRarity == "Uncommon"; + weirdRarity = "Uncommon"; genrarity(weirdRarity, 1); } elseif (this.set === "PE1") {