mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 10:25:11 +02:00
New Challenger Image
This commit is contained in:
@@ -37,7 +37,7 @@ module.exports = class CardCommand extends Command {
|
||||
size: 256
|
||||
});
|
||||
try {
|
||||
const cardID = Math.floor(Math.random() * (9999 - 1000 + 1)) + 1000;
|
||||
const cardID = Math.floor(Math.random() * ((9999 - 1000) + 1)) + 1000;
|
||||
let rarity;
|
||||
if (cardID < 5000) rarity = 'C';
|
||||
else if (cardID < 8000) rarity = 'U';
|
||||
|
||||
Reference in New Issue
Block a user