From 9afe1e76906b5d89dfae2759289d1943753de951 Mon Sep 17 00:00:00 2001 From: Magesofthebeach <53281653+Magesofthebeach@users.noreply.github.com> Date: Sat, 29 Feb 2020 19:24:16 -0500 Subject: [PATCH] bracketed OP1 if/elses --- src/components/entercode/PackSimulator.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/entercode/PackSimulator.js b/src/components/entercode/PackSimulator.js index 857c17f..fafa887 100644 --- a/src/components/entercode/PackSimulator.js +++ b/src/components/entercode/PackSimulator.js @@ -170,14 +170,18 @@ export default class PackSimulator extends React.Component { genrarity("Common", 2); let randomWeird = Math.floor(Math.random() * 75) + 1; let weirdRarity = ""; - if (randomWeird == 75) + if (randomWeird == 75) { weirdRarity = "Ultra Rare"; - else if (randomWeird < 19) + } + else if (randomWeird < 19) { weirdRarity = "Super Rare"; - else if (randomWeird < 44) + } + else if (randomWeird < 44) { weirdRarity = "Rare"; - else + } + else { weirdRarity = "Uncommon"; + } genrarity(weirdRarity, 1); } else if (this.set === "PE1") {