Skip to content

Commit

Permalink
Bank embed now shows the bank capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
Colind8 committed Apr 19, 2024
1 parent b579346 commit a93509f
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions commands/idle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1607,6 +1607,13 @@ function upgradebuilder (key, upgrade) {
}

function bankbuilder (key) {
bankmax = 200;
if (key.tree.includes(6)) {
bankmax = 800;
}
if (key.tree.includes(7)) {
bankmax = 2000;
}
if (key.minigames.investment > 0) {
const idleBank = new MessageEmbed()
.setColor(color)
Expand All @@ -1620,13 +1627,13 @@ function bankbuilder (key) {
const idleBank = new MessageEmbed()
.setColor(color)
.setTitle(idle.bank.title)
.setFooter({text: "Bank Balance: " + key.minigames.bank.toString()})
.setFooter({text: `Bank Balance: ${key.minigames.bank.toString()} / ${bankmax}`})
return idleBank;
} else {
const idleBank = new MessageEmbed()
.setColor(color)
.setTitle(idle.bank.title)
.setFooter({text: "Bank Balance: " + key.minigames.bank.toString()})
.setFooter({text: `Bank Balance: ${key.minigames.bank.toString()} / ${bankmax}`})
return idleBank;
}
} else {
Expand All @@ -1636,15 +1643,15 @@ function bankbuilder (key) {
.setTitle(idle.bank.title)
.setThumbnail(idle.bank.thumbnail)
.setDescription(idle.bank.body + idle.bank.invest)
.setFooter({text: "Bank Balance: " + key.minigames.bank.toString()})
.setFooter({text: `Bank Balance: ${key.minigames.bank.toString()} / ${bankmax}`})
return idleBank;
} else {
const idleBank = new MessageEmbed()
.setColor(color)
.setTitle(idle.bank.title)
.setThumbnail(idle.bank.thumbnail)
.setDescription(idle.bank.body)
.setFooter({text: "Bank Balance: " + key.minigames.bank.toString()})
.setFooter({text: `Bank Balance: ${key.minigames.bank.toString()} / ${bankmax}`})
return idleBank;
}
}
Expand Down

0 comments on commit a93509f

Please sign in to comment.