diff --git a/src/utils/rpg/battle/Battle.js b/src/utils/rpg/battle/Battle.js index b6756b5..0236554 100644 --- a/src/utils/rpg/battle/Battle.js +++ b/src/utils/rpg/battle/Battle.js @@ -316,15 +316,13 @@ class Battle { let { id, userID, createdAt, updatedAt, ...character } = await this.getCharacter(); - let xpGain = Math.floor( + let xpGain = Math.ceil( 1 * ((5 * (this.opponent.level - this.character.level)) / this.character.level + 4), ); - if (xpGain < 1) xpGain = 1; - character.xp += xpGain; schemas.character().update(