Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
14zy committed Jun 19, 2024
1 parent d228ff2 commit 74ed2c6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions js/engine-clicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -950,17 +950,19 @@ function mintNFT(medal) {
amount = "1000000"
}

switch (window.answer.toString().length) {
window.counter = window.counter - 1;

switch (window.counter.toString().length) {
case 1:
amount = amount + window.answer.toString() + "00"
amount = amount + window.counter.toString() + "00"
break;

case 2:
amount = amount + window.answer.toString() + "0"
amount = amount + window.counter.toString() + "0"
break;

case 3:
amount = amount + window.answer.toString()
amount = amount + window.counter.toString()
break;

}
Expand Down

0 comments on commit 74ed2c6

Please sign in to comment.