Skip to content
Snippets Groups Projects
Commit def45ce0 authored by DarkGod's avatar DarkGod
Browse files

Merge branch 'encumbered' into 'master'

Encumbered

Show message if player fails to move due to encumberance.

Since people still easily fail to notice it.
parents 0ae8f0c7 ac56f18d
No related branches found
No related tags found
No related merge requests found
......@@ -295,6 +295,11 @@ function _M:move(x, y, force)
local moved = mod.class.Actor.move(self, x, y, force)
if not moved and self.encumbered then
game.logPlayer(self, "#FF0000#You carry too much--you are encumbered!")
game.logPlayer(self, "#FF0000#Drop some of your items.")
end
if not force and ox == self.x and oy == self.y and self.doPlayerSlide then
self.doPlayerSlide = nil
local tx, ty = self:tryPlayerSlide(x, y, false)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment