diff --git a/commands/stats.js b/commands/stats.js index e37855a..dd4b483 100644 --- a/commands/stats.js +++ b/commands/stats.js @@ -31,7 +31,7 @@ module.exports = { .setTitle(`${u.displayName}${u.displayName.toLowerCase().endsWith('s') ? "'" : "'s"} Stats`) .setDescription("Local leveling stats") .addField("Level", xp.level, true) - .addField("XP", `**${xp.xp}** of **${Math.ceil(100 + (((xp.level / 3) ** 1.4) * 1.4))}** needed to level up`, true) + .addField("XP", `**${xp.xp}** of **${Math.ceil(100 + (((xp.level / 3) ** 2) * 2))}** needed to level up`, true) .setThumbnail(client.users.cache.get(u.id).avatarURL({size: 2048})) .setColor("c375f0") .setFooter("Natsuki") diff --git a/util/lxp/gainxp.js b/util/lxp/gainxp.js index 4f9e2ba..6258030 100644 --- a/util/lxp/gainxp.js +++ b/util/lxp/gainxp.js @@ -6,7 +6,7 @@ module.exports = async (client, member, channel) => { client.misc.cache.lxp.xp[channel.guild.id][member].xp += 10; let x = client.misc.cache.lxp.xp[channel.guild.id][member].level; - let max = Math.ceil(100 + (((x / 3) ** 1.4) * 1.4)); + let max = Math.ceil(100 + (((x / 3) ** 2) * 2)); if (client.misc.cache.lxp.xp[channel.guild.id][member].xp > max) { client.misc.cache.lxp.xp[channel.guild.id][member].xp -= max;