new players: more money, entertainers.

This commit is contained in:
Enno Rehling 2015-05-03 23:23:21 +02:00
parent 01969dfb40
commit 24dbe64ef7
1 changed files with 11 additions and 10 deletions

View File

@ -2,18 +2,19 @@ function seed(r, email, race, lang)
local f = faction.create(email, race, lang) local f = faction.create(email, race, lang)
local u = unit.create(f, r) local u = unit.create(f, r)
u:set_skill("perception", 30) u:set_skill("perception", 30)
u:add_item("money", 10000) u:add_item("money", 20000)
items = { items = {
log = 50, log = 50,
stone = 50, stone = 50,
iron = 50, iron = 50,
laen = 10, laen = 10,
mallorn = 10, mallorn = 10,
skillpotion = 5 skillpotion = 5
} }
for it, num in pairs(items) do for it, num in pairs(items) do
u:add_item(it, num) u:add_item(it, num)
end end
u = nil
skills ={ skills ={
"crossbow", "crossbow",
"mining", "mining",
@ -35,15 +36,15 @@ function seed(r, email, race, lang)
"roadwork", "roadwork",
"tactics", "tactics",
"stealth", "stealth",
"entertainment",
"weaponsmithing", "weaponsmithing",
"cartmaking", "cartmaking",
"taxation", "taxation",
"stamina" "stamina"
} }
unit.create(f, r, 50):set_skill("entertainment", 15)
for _, sk in ipairs(skills) do for _, sk in ipairs(skills) do
u = unit.create(f, r, 5) u = u or unit.create(f, r, 5)
u:set_skill(sk, 15) if u:set_skill(sk, 15)>0 then u=nil end
end end
return f return f
end end