Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
Adding vocation lib.
  • Loading branch information
joseluis2g committed Jan 21, 2019
1 parent 2cc5c20 commit cad13d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/lib/core/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ dofile('data/lib/core/player.lua')
dofile('data/lib/core/position.lua')
dofile('data/lib/core/teleport.lua')
dofile('data/lib/core/tile.lua')
dofile('data/lib/core/vocation.lua')
7 changes: 7 additions & 0 deletions data/lib/core/vocation.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function Vocation.getBase(self)
local base = self
while base:getDemotion() do
base = base:getDemotion()
end
return base
end

0 comments on commit cad13d8

Please sign in to comment.