mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
More Grammar Fixes
This commit is contained in:
@@ -44,7 +44,7 @@ module.exports = class BattleCommand extends Command {
|
|||||||
while (userHP > 0 && oppoHP > 0) {
|
while (userHP > 0 && oppoHP > 0) {
|
||||||
const username = userTurn ? msg.author.username : opponent.username;
|
const username = userTurn ? msg.author.username : opponent.username;
|
||||||
await msg.say(stripIndents`
|
await msg.say(stripIndents`
|
||||||
**${username}**, do you **fight**, **guard**, **special**, **cure** or **run**?
|
**${username}**, do you **fight**, **guard**, **special**, **cure**, or **run**?
|
||||||
**${msg.author.username}**: ${userHP}HP
|
**${msg.author.username}**: ${userHP}HP
|
||||||
**${opponent.username}**: ${oppoHP}HP
|
**${opponent.username}**: ${oppoHP}HP
|
||||||
`);
|
`);
|
||||||
@@ -85,14 +85,14 @@ module.exports = class BattleCommand extends Command {
|
|||||||
}
|
}
|
||||||
if (guard) guard = false;
|
if (guard) guard = false;
|
||||||
} else {
|
} else {
|
||||||
await msg.say('Miss!');
|
await msg.say(`**${username}**'s attack missed!`);
|
||||||
if (guard) guard = false;
|
if (guard) guard = false;
|
||||||
if (userTurn) userTurn = false;
|
if (userTurn) userTurn = false;
|
||||||
else userTurn = true;
|
else userTurn = true;
|
||||||
}
|
}
|
||||||
} else if (choice === 'cure') {
|
} else if (choice === 'cure') {
|
||||||
if (userTurn ? userCure : oppoCure) {
|
if (userTurn ? userCure : oppoCure) {
|
||||||
await msg.say(`**${username}** regains **250HP**!`);
|
await msg.say(`**${username}** regains **250** health!`);
|
||||||
if (userTurn) {
|
if (userTurn) {
|
||||||
userHP = userHP + 250;
|
userHP = userHP + 250;
|
||||||
userCure = false;
|
userCure = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user