mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
New Challenger Image
This commit is contained in:
@@ -94,7 +94,7 @@ module.exports = class BattleCommand extends Command {
|
||||
} else if (choice === 'special') {
|
||||
const hit = Math.floor(Math.random() * 4) + 1;
|
||||
if (hit === 1) {
|
||||
const damage = Math.floor((Math.random() * ((guard ? 300 : 150) - (100 + 1))) + 100);
|
||||
const damage = Math.floor(Math.random() * (((guard ? 300 : 150) - 100) + 1)) + 100;
|
||||
await msg.say(`${user} deals **${damage}** damage!`);
|
||||
dealDamage(damage);
|
||||
reset();
|
||||
|
||||
@@ -39,7 +39,7 @@ module.exports = class GunfightCommand extends Command {
|
||||
return msg.say('Looks like they declined...');
|
||||
}
|
||||
await msg.say('Get Ready...');
|
||||
const length = Math.floor((Math.random() * ((30000 - 1000) + 1)) + 1000);
|
||||
const length = Math.floor(Math.random() * ((30000 - 1000) + 1)) + 1000;
|
||||
this.client.setTimeout(async () => {
|
||||
const word = words[Math.floor(Math.random() * words.length)];
|
||||
await msg.say(`TYPE \`${word.toUpperCase()}\` NOW!`);
|
||||
|
||||
Reference in New Issue
Block a user