forked from 2009Scape/Server
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:
parent
4cd703097c
commit
bbaa4bbdbe
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue