mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-11 09:00:23 -07:00
Corrected combat level calculation for mage and ranged base
This commit is contained in:
parent
50e0fe9400
commit
a69253d3d2
1 changed files with 2 additions and 2 deletions
|
|
@ -547,8 +547,8 @@ public final class Skills {
|
||||||
|
|
||||||
double base = 0.25 * (staticLevels[DEFENCE] + staticLevels[HITPOINTS] + floor(0.5 * staticLevels[PRAYER]));
|
double base = 0.25 * (staticLevels[DEFENCE] + staticLevels[HITPOINTS] + floor(0.5 * staticLevels[PRAYER]));
|
||||||
double meleeBase = 0.325 * (staticLevels[ATTACK] + staticLevels[STRENGTH]);
|
double meleeBase = 0.325 * (staticLevels[ATTACK] + staticLevels[STRENGTH]);
|
||||||
double rangeBase = 0.325 * (floor(staticLevels[RANGE] / 2.0) * 1.5);
|
double rangeBase = 0.325 * (floor(staticLevels[RANGE] / 2.0) * 3.0);
|
||||||
double magicBase = 0.325 * (floor(staticLevels[MAGIC] / 2.0) * 1.5);
|
double magicBase = 0.325 * (floor(staticLevels[MAGIC] / 2.0) * 3.0);
|
||||||
|
|
||||||
return (int) (base + max(meleeBase, max(rangeBase, magicBase)));
|
return (int) (base + max(meleeBase, max(rangeBase, magicBase)));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue