server/scripts/eressea/init.lua
Enno Rehling 44c89e26ec Lua module rewrite, part deux.
rules for E3 and E4
some missing files.
2014-07-26 23:41:56 +02:00

23 lines
455 B
Lua

if config.paths ~= nil then
for path in string.gmatch(config.paths, "([^:]+)") do
package.path = package.path .. ';' .. path .. '\\?.lua;' .. path .. '\\?\\init.lua'
end
end
print(package.path)
require 'eressea.resources'
require 'eressea.spells'
local self = {}
function self.update()
print('spawn dragons')
spawn_dragons()
print('spawn undead')
spawn_undead()
update_guards()
update_scores()
end
return self