PS lineSpec should be float else you get funny results.Math.Min Method (Double, Double)
Return Value
Parameter val1 or val2, whichever is smaller. If val1, val2, or both val1 and val2 are equal to NaN, NaN is returned.
It's similar to heal formula:
factor = Math.Min(1.25, 0.25 + (lineSpec-1)/Spell.Level);
buffValue= spell.Value * factor;
edit: maybe they use just lineSpec (without -1), not sure now...
int effectivness = 75+(specLevel-1)*50/spellLevel;
if(effectivness>125)
effectivness = 125;
else if (effectivness<75)
effectivness = 75;Return to “%s” DOL Development Discussion
Users browsing this forum: No registered users and 1 guest