forked from github/server
useful scripts for setting up the game.
fix silver->money in the build scripts. config.lua: load the game configuration reports.lua: write the reports for the (initial) turn
This commit is contained in:
parent
fb32ebcd18
commit
61a1b6fafd
|
@ -0,0 +1,7 @@
|
||||||
|
local path = 'scripts'
|
||||||
|
if config.install then
|
||||||
|
path = config.install .. '/' .. path
|
||||||
|
end
|
||||||
|
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
|
||||||
|
require 'eressea'
|
||||||
|
require 'eressea.xmlconf'
|
|
@ -0,0 +1,4 @@
|
||||||
|
dofile('config.lua')
|
||||||
|
eressea.read_game(get_turn() + '.dat')
|
||||||
|
init_reports()
|
||||||
|
write_reports()
|
|
@ -3,7 +3,7 @@ function new_faction(email, race, lang, r)
|
||||||
u = unit.create(f, r, 10)
|
u = unit.create(f, r, 10)
|
||||||
u:add_item("log", 5);
|
u:add_item("log", 5);
|
||||||
u:add_item("horse", 2);
|
u:add_item("horse", 2);
|
||||||
u:add_item("silver", 1000);
|
u:add_item("money", 1000);
|
||||||
u:add_item("adamantium", 1);
|
u:add_item("adamantium", 1);
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ function new_faction(email, race, lang, r)
|
||||||
u = unit.create(f, r, 10)
|
u = unit.create(f, r, 10)
|
||||||
u:add_item("log", 5);
|
u:add_item("log", 5);
|
||||||
u:add_item("horse", 2);
|
u:add_item("horse", 2);
|
||||||
u:add_item("silver", 1000);
|
u:add_item("money", 1000);
|
||||||
u:add_item("adamantium", 1);
|
u:add_item("adamantium", 1);
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue