Code: Select all
local add = 0
return math.floor(40 + self:getStr() * 1.8 + (self.max_encumber or 0) + add)
end
to
function _M:getMaxEncumbrance()
local add = 0
return math.floor(40 + self:getStr() * 25 + (self.max_encumber or 0) + add)
end
Code: Select all
What I did;
What I understood from Darkgod's wise words (http://te4.org/wiki/addons) I wish to superload the file Actor.lua so I put that in Superload/Mod/Class folder. In the file actor.lua file I put;
Code: Select all
function _M:getMaxEncumbrance()
local add = 0
return math.floor(40 + self:getStr() * 25 + (self.max_encumber or 0) + add)
end
return _M
Code: Select all