New Challenger Image

This commit is contained in:
Daniel Odendahl Jr
2017-08-06 00:51:33 +00:00
parent c5f10083e0
commit ec25e6d3d3
6 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -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!`);