simple tool help testing scaling

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
helminthauge
Wyrmic
Posts: 212
Joined: Sat Sep 29, 2018 3:43 am

simple tool help testing scaling

#1 Post by helminthauge »

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

Post Reply