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:
Enno Rehling 2014-10-10 20:19:04 +02:00
parent fb32ebcd18
commit 61a1b6fafd
4 changed files with 13 additions and 2 deletions

7
scripts/config.lua Normal file
View File

@ -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'

4
scripts/reports.lua Normal file
View File

@ -0,0 +1,4 @@
dofile('config.lua')
eressea.read_game(get_turn() + '.dat')
init_reports()
write_reports()

View File

@ -3,7 +3,7 @@ function new_faction(email, race, lang, r)
u = unit.create(f, r, 10)
u:add_item("log", 5);
u:add_item("horse", 2);
u:add_item("silver", 1000);
u:add_item("money", 1000);
u:add_item("adamantium", 1);
end

View File

@ -3,7 +3,7 @@ function new_faction(email, race, lang, r)
u = unit.create(f, r, 10)
u:add_item("log", 5);
u:add_item("horse", 2);
u:add_item("silver", 1000);
u:add_item("money", 1000);
u:add_item("adamantium", 1);
end