Update lint

This commit is contained in:
Daniel Odendahl Jr
2018-08-19 02:22:41 +00:00
parent db419e3f64
commit 786d51ece5
6 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -88,12 +88,12 @@ module.exports = class BattleCommand extends Command {
reset(false);
} else if (choice === 'special') {
const miss = Math.floor(Math.random() * 4);
if (!miss) {
if (miss) {
await msg.say(`${user}'s attack missed!`);
} else {
const damage = randomRange(100, guard ? 150 : 300);
await msg.say(`${user} deals **${damage}** damage!`);
dealDamage(damage);
} else {
await msg.say(`${user}'s attack missed!`);
}
reset();
} else if (choice === 'run') {
+1 -1
View File
@@ -41,7 +41,7 @@ module.exports = class RouletteCommand extends Command {
run(msg, { space }) {
const number = Math.floor(Math.random() * 37);
const color = !number ? null : red.includes(number) ? 'RED' : 'BLACK';
const color = number ? red.includes(number) ? 'RED' : 'BLACK' : null;
const win = this.verifyWin(space, number);
return msg.reply(`The result is **${number}${color ? ` ${color}` : ''}**. ${win ? 'You win!' : 'You lose...'}`);
}