From bbaa4bbdbea730dfa0dce2a2264e804dda08ba2b Mon Sep 17 00:00:00 2001 From: randy Date: Wed, 6 Nov 2024 11:06:23 -0700 Subject: [PATCH] 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. --- .../minigame/pestcontrol/reward/PCRewardInterface.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Server/src/main/content/minigame/pestcontrol/reward/PCRewardInterface.java b/Server/src/main/content/minigame/pestcontrol/reward/PCRewardInterface.java index 9dc6aab16..1fd3c5ca7 100644 --- a/Server/src/main/content/minigame/pestcontrol/reward/PCRewardInterface.java +++ b/Server/src/main/content/minigame/pestcontrol/reward/PCRewardInterface.java @@ -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; } /**