Skip to content

Commit

Permalink
encumbrance fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zireael07 committed Aug 5, 2013
1 parent 2fe05c4 commit 4ba7ffe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class/Actor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ function _M:init(t, no_default)

self.lite = 3 --Temporary test


-- Use weapon damage actually
if not self:getInven("MAIN_HAND") or not self:getInven("OFF_HAND") then return end
if weapon then dam = weapon.combat.dam
Expand Down Expand Up @@ -746,7 +745,8 @@ end
--Encumbrance
function _M:getMaxEncumbrance()
local add = 0
return math.floor(40 + self:getStr() * 1.8 + (self.max_encumber or 0) + add)
if self:getStr() <= 10 then return math.floor(10*self:getStr())
else return math.ceil((10*self:getStr()) + (5*(self:getStr()-10))) end
end

function _M:getEncumbrance()
Expand Down

0 comments on commit 4ba7ffe

Please sign in to comment.