Corrected combat level calculation for mage and ranged base

This commit is contained in:
Lila Hioh 2022-08-20 07:12:03 +00:00 committed by Ryan
parent 50e0fe9400
commit a69253d3d2

View file

@ -547,8 +547,8 @@ public final class Skills {
double base = 0.25 * (staticLevels[DEFENCE] + staticLevels[HITPOINTS] + floor(0.5 * staticLevels[PRAYER]));
double meleeBase = 0.325 * (staticLevels[ATTACK] + staticLevels[STRENGTH]);
double rangeBase = 0.325 * (floor(staticLevels[RANGE] / 2.0) * 1.5);
double magicBase = 0.325 * (floor(staticLevels[MAGIC] / 2.0) * 1.5);
double rangeBase = 0.325 * (floor(staticLevels[RANGE] / 2.0) * 3.0);
double magicBase = 0.325 * (floor(staticLevels[MAGIC] / 2.0) * 3.0);
return (int) (base + max(meleeBase, max(rangeBase, magicBase)));
}