mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 21:40:51 +02:00
Balance
This commit is contained in:
@@ -53,7 +53,7 @@ module.exports = class BattleCommand extends Command {
|
|||||||
if (miss) {
|
if (miss) {
|
||||||
await msg.say(`${battle.attacker}'s special attack missed!`);
|
await msg.say(`${battle.attacker}'s special attack missed!`);
|
||||||
} else {
|
} else {
|
||||||
const damage = randomRange(battle.defender.guard ? 50 : 100, battle.defender.guard ? 100 : 200);
|
const damage = randomRange(battle.defender.guard ? 50 : 100, battle.defender.guard ? 100 : 150);
|
||||||
await msg.say(`${battle.attacker} deals **${damage}** damage!`);
|
await msg.say(`${battle.attacker} deals **${damage}** damage!`);
|
||||||
battle.defender.dealDamage(damage);
|
battle.defender.dealDamage(damage);
|
||||||
}
|
}
|
||||||
@@ -61,12 +61,12 @@ module.exports = class BattleCommand extends Command {
|
|||||||
battle.reset();
|
battle.reset();
|
||||||
} else if (choice === 'cure') {
|
} else if (choice === 'cure') {
|
||||||
await msg.say(`${battle.attacker} heals **${battle.attacker.mp}** HP!`);
|
await msg.say(`${battle.attacker} heals **${battle.attacker.mp}** HP!`);
|
||||||
battle.attacker.heal(battle.attacker.mp);
|
battle.attacker.heal(Math.round(battle.attacker.mp / 2));
|
||||||
battle.attacker.useMP(battle.attacker.mp);
|
battle.attacker.useMP(battle.attacker.mp);
|
||||||
battle.reset();
|
battle.reset();
|
||||||
} else if (choice === 'final') {
|
} else if (choice === 'final') {
|
||||||
await msg.say(`${battle.attacker} uses their final move, dealing **100** damage!`);
|
await msg.say(`${battle.attacker} uses their final move, dealing **150** damage!`);
|
||||||
battle.defender.dealDamage(100);
|
battle.defender.dealDamage(150);
|
||||||
battle.attacker.useMP(100);
|
battle.attacker.useMP(100);
|
||||||
battle.attacker.usedFinal = true;
|
battle.attacker.usedFinal = true;
|
||||||
battle.reset();
|
battle.reset();
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ module.exports = class Battler {
|
|||||||
**${this.battle.opponent.user.tag}:** ${this.battle.opponent.hp} HP
|
**${this.battle.opponent.user.tag}:** ${this.battle.opponent.hp} HP
|
||||||
`;
|
`;
|
||||||
if (this.battle.turn === 1 || this.battle.turn === 2) {
|
if (this.battle.turn === 1 || this.battle.turn === 2) {
|
||||||
content += '\n\n_Special uses 50 MP whether or not it hits. Cure uses all remaining MP, and heals that amount._';
|
content += '\n\n_Special uses 50 MP whether or not it hits. Cure takes remaining MP and heals half that amount._';
|
||||||
}
|
}
|
||||||
await msg.say(content);
|
await msg.say(content);
|
||||||
const filter = res => {
|
const filter = res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user