Code: Select all
game.player.combatTalentWeapon = function(actor, t, base, max, t2) if t2 then t2 = t2 / 2 else t2 = 0 end local diff = max - base local mult = base + diff * math.sqrt((t + t2) / 5) return mult end
function c(f, p, b, f2) local r = {} for i = 1, 7 do r[i] = game.player[f](game.player, (b or 1) * i, unpack(p)) if f2 then r[i] = f2(r[i]) end end return unpack(r) end