Floor skill experience in formspec

pull/18/head
Brandon 2015-08-15 22:52:09 -05:00
parent 14fce0c6c2
commit df16869d21
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ function skills.get_skills_formspec(player)
for id,skill in pairs(skills.available_skills) do
local sk = skills.get_skill(name,id)
formspec = formspec.."label[1.5,"..tostring(i)..".2;"..skill.desc.."]"
formspec = formspec.."label[3.5,"..tostring(i)..".2;"..sk.exp.." / "..tostring( (math.floor((sk.level^1.75)) * skill.level_exp) ).."]"
formspec = formspec.."label[3.5,"..tostring(i)..".2;"..math.floor(sk.exp).." / "..tostring( (math.floor((sk.level^1.75)) * skill.level_exp) ).."]"
formspec = formspec.."label[6,"..tostring(i)..".2;"..tostring(sk.level).." / "..tostring(skill.max_level).."]"
formspec = formspec.."list[detached:"..name.."_skills;"..tostring(id)..";0.5,"..tostring(i)..";1,1;]"
i = i + 1