forked from github/server
new players: more money, entertainers.
This commit is contained in:
parent
01969dfb40
commit
24dbe64ef7
|
@ -2,7 +2,7 @@ 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,
|
||||||
|
@ -14,6 +14,7 @@ function seed(r, email, race, lang)
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue