ThelwHelpRePaidia Posted May 27, 2020 Posted May 27, 2020 Does anyone how can i make basemul work on hi5 project? i know i can use mul but as i have seen they are not working the same way Quote
Zake Posted June 28, 2020 Posted June 28, 2020 basemul => multiplies the base stat mul => multiplies the current stat Quote
ShinichiYao Posted November 25, 2020 Posted November 25, 2020 public double calc(L2Character caster, L2Character target, Skill skill, double initVal) { double value = initVal; double mul = 1; for (AbstractFunction func : _functions) { if ((func instanceof FuncMul) && ((func.getStat() == Stats.CRITICAL_RATE) || (func.getStat() == Stats.MCRITICAL_RATE)) && (func.getValue() > 1)) { mul += func.getValue() - 1; } else { if (mul > 1) { value *= mul; mul = 1; } value = func.calc(caster, target, skill, value); } } if (mul > 1) { value *= mul; } return value; } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.