Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If the gem type is special explain that it might be hidden #391

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/commands/commandList/zoo/gemUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ exports.use = async function (p, ids) {
text = `**🚫 | ${p.getName()}**, you already have an active ${
gems[0].type
} gem or you do not own this gem!`;
if (gems[0].type == "Special") {
text += ` Your special gem might be hidden right now, it will show again during the next event!`;
}

} else {
text =
`**${gems[0].emoji} | ${p.getName()}**, you activated a(n) **${ranks[gems[0].key[0]]} ${
Expand All @@ -106,6 +110,9 @@ exports.use = async function (p, ids) {
for (let i = 0; i < results.length; i++) {
if (!results[i] || results[i].changedRows == 0) {
text += `\r\n**🚫 |** you already have an active ${gems[i].type} gem or you do not own this gem!`;
if (gems[i].type == "Special") {
text += ` Your special gem might be hidden right now, it will show again during the next event!`;
}
} else {
text +=
`\r\n**${gems[i].emoji} |** A(n) **${ranks[gems[i].key[0]]} ${gems[i].type} Gem!**\r\n` +
Expand Down
Loading