![Smile :)](./images/smilies/icon_e_smile.gif)
The code for calculating bonuses from skill levels seems to be dividing by the values specified in control.lua (resMining, resFarming, resCrafting, resExplore, resDefence)
This confused me, as I expected bigger values to be better (as for resGeneral).
Example from onplayercrafteditem.lua
Code: Select all
local cant = math.floor(stats.crafting.level / 100/datos.resCrafting)
Code: Select all
(stats.crafting.level / 100) / datos.resCrafting
Code: Select all
stats.crafting.level * datos.resCrafting / 100
The resGeneral bonus to experience is using multiply:
Example from onplayercrafteditem.lua
Code: Select all
stats.crafting.exp = mix.round(stats.crafting.exp + ( cant * 0.1 * (1 + talents[1][7].now / 40 + stats.general.level*datos.resGeneral)),3)
Example from gui.lua
Code: Select all
gui.tableStats4.add({ type="label", name="stat4c4", caption = {"gui.stat4c4",stats.crafting.level*datos.resCrafting}, style = "cursed-label" })
Code: Select all
["resMining"] = 1,
["resFarming"] = 2,
["resCrafting"] = 0.4
I may be misunderstanding the code though.