Battle Update

This commit is contained in:
Daniel Odendahl Jr
2017-05-27 19:44:53 +00:00
parent b251cf3035
commit af8ec2cf6e
+5 -1
View File
@@ -36,7 +36,11 @@ module.exports = class BattleCommand extends Command {
let guard = false;
while (userHP > 0 && oppoHP > 0) {
const username = userTurn ? msg.author.username : opponent.username;
await msg.say(`${username}, do you fight, guard, special, or run?`);
await msg.say(stripIndents`
${username}, do you fight, guard, special, or run?
${username}: ${userTurn ? userHP : oppoHP} HP
${userTurn ? opponent.username : msg.author.username}: ${userTurn ? oppoHP : userHP} HP
`);
try {
const turn = await msg.channel.awaitMessages(res => res.author.id === (userTurn ? msg.author.id : opponent.id), {
max: 1,