Skip to content
Snippets Groups Projects
Commit 77933e0d authored by dg's avatar dg
Browse files

Changed experience level charts

git-svn-id: http://svn.net-core.org/repos/t-engine4@1716 51575b47-30f0-44d4-a5cc-537603b46e54
parent 9c2cec16
No related branches found
No related tags found
No related merge requests found
......@@ -117,15 +117,19 @@ ActorStats:defineStat("Luck", "lck", 50, 1, 100, "Luck defines your character's
ActorLevel:defineMaxLevel(nil)
ActorLevel.exp_chart = function(level)
local exp = 10
local mult = 8
local mult = 12
local min = 3
for i = 2, level do
exp = exp + level * mult
mult = util.bound(mult - 0.2, min, mult)
if level < 30 then
mult = util.bound(mult - 0.2, min, mult)
else
mult = util.bound(mult - 0.1, min, mult)
end
end
return math.ceil(exp)
end
--[[
-- [[
local tnb, tznb = 0, 0
for i = 2, 50 do
local nb = math.ceil(ActorLevel.exp_chart(i) / i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment