diff --git a/mods/skills/init.lua b/mods/skills/init.lua index 716f1a8..2fa2e6d 100644 --- a/mods/skills/init.lua +++ b/mods/skills/init.lua @@ -89,7 +89,7 @@ function skills.get_skills_formspec(player) for id,skill in pairs(skills.available_skills) do 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( ((sk.level^2) * skill.level_exp) ).."]" + formspec = formspec.."label[3.5,"..tostring(i)..".2;"..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 diff --git a/mods/skills/register_skills.lua b/mods/skills/register_skills.lua index fe43c6b..7410172 100644 --- a/mods/skills/register_skills.lua +++ b/mods/skills/register_skills.lua @@ -1,11 +1,11 @@ -- REGISTER THE SKILLS -skills.register_skill(SKILL_WOOD, { desc = 'Wood', max_level = 10, level_exp = 15 }) -skills.register_skill(SKILL_STONE, { desc = 'Stone', max_level = 10, level_exp = 15 }) -skills.register_skill(SKILL_METAL, { desc = 'Metals', max_level = 25, level_exp = 20 }) -skills.register_skill(SKILL_CRYSTAL, { desc = 'Crystals', max_level = 40, level_exp = 15 }) +skills.register_skill(SKILL_WOOD, { desc = 'Wood', max_level = 10, level_exp = 5 }) +skills.register_skill(SKILL_STONE, { desc = 'Stone', max_level = 10, level_exp = 8 }) +skills.register_skill(SKILL_METAL, { desc = 'Metals', max_level = 25, level_exp = 10 }) +skills.register_skill(SKILL_CRYSTAL, { desc = 'Crystals', max_level = 40, level_exp = 10 }) -skills.register_skill(SKILL_SMELTING, { desc = 'Smelting', max_level = 50, level_exp = 10 }) -skills.register_skill(SKILL_CRAFTING, { desc = 'Crafting', max_level = 50, level_exp = 10 }) +skills.register_skill(SKILL_SMELTING, { desc = 'Smelting', max_level = 50, level_exp = 5 }) +skills.register_skill(SKILL_CRAFTING, { desc = 'Crafting', max_level = 50, level_exp = 5 }) -skills.register_skill(SKILL_ARROW, { desc = 'Bow and Arrow', max_level=10, level_exp = 25}) -skills.register_skill(SKILL_MAGIC, { desc = 'Magic', max_level=15, level_exp = 25}) +skills.register_skill(SKILL_ARROW, { desc = 'Bow and Arrow', max_level=10, level_exp = 15}) +skills.register_skill(SKILL_MAGIC, { desc = 'Magic', max_level=15, level_exp = 15})