mirror of
https://github.com/chaoticbackup/chaoticbackup.github.io.git
synced 2026-04-07 17:44:47 -05:00
fixed bug
weirdRarity used == instead of =
This commit is contained in:
parent
2a88a6a181
commit
58e43ced91
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user