Skip to content

Commit

Permalink
Make genesis sat mythic (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Jul 21, 2022
1 parent 2cc23b3 commit 1220353
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/subcommand/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ impl Traits {

println!(
"rarity: {}",
if o == 0 && p == 0 && e == 0 {
if c == 0 && o == 0 && p == 0 && e == 0 {
"mythic"
} else if o == 0 && p == 0 && e == 0 {
"legendary"
} else if o == 0 && e == 0 {
"epic"
Expand Down
2 changes: 1 addition & 1 deletion tests/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ fn degree() {

#[test]
fn rarity() {
case(0, "rarity", "legendary");
case(0, "rarity", "mythic");
case(1, "rarity", "common");

case(50 * 100_000_000 - 1, "rarity", "common");
Expand Down

0 comments on commit 1220353

Please sign in to comment.