Fixed exp reward calc and reduced to one fifth

The reward formula double-dipped with exp multipliers. Corrected the formula to match the original 2009 version, then reduced to 1/5 to account for the increased points given for each round.

The increased points are meant to reduce the grind for the items, but not the purchasable exp.
This commit is contained in:
randy 2024-11-06 11:06:23 -07:00
parent 4cd703097c
commit bbaa4bbdbe

View file

@ -192,13 +192,13 @@ public final class PCRewardInterface extends ComponentPlugin {
*/
public static double calculateExperience(final Player player, final int skillId) {
int level = player.getSkills().getStaticLevel(skillId);
double divideBy = 30;//17.5-33 ideal range
double multiplier = 35;
if (skillId == Skills.PRAYER) {
divideBy = 67;// 34-75 ideal range
multiplier = 18;
} else if (skillId == Skills.MAGIC || skillId == Skills.RANGE) {
divideBy = 29;//19.1-31 ideal range
multiplier = 32;
}
return (int) ((level * level) / divideBy) * (player.getSkills().experienceMultiplier / 2);
return (int) ((level * level) / 600) * (multiplier) / 5;
}
/**