Merge branch 'develop' of github.com:eressea/server into develop

Conflicts:
	s/build
This commit is contained in:
Enno Rehling 2015-07-12 14:43:48 +02:00
commit 602f254e22
6 changed files with 18 additions and 20 deletions

View File

@ -33,10 +33,13 @@
<xi:include href="config://default/adamantium.xml"/>
<equipment>
<set name="first_unit">
<item name="conquesttoken" amount="1"/>
<item name="log" amount="30"/>
<item name="stone" amount="30"/>
<item name="money" amount="4200"/>
<item name="log" amount="50"/>
<item name="stone" amount="50"/>
<item name="iron" amount="50"/>
<item name="laen" amount="10"/>
<item name="mallorn" amount="10"/>
<item name="skillpotion" amount="5"/>
<item name="money" amount="20000"/>
</set>
<set name="new_faction">
<item name="adamantium" amount="1"/>

View File

@ -32,7 +32,6 @@
<equipment>
<set name="first_unit">
<item name="conquesttoken" amount="1"/>
<item name="log" amount="10"/>
<item name="stone" amount="10"/>
<item name="money" amount="5000"/>

View File

@ -32,7 +32,6 @@
<equipment>
<set name="first_unit">
<item name="conquesttoken" amount="1"/>
<item name="log" amount="10"/>
<item name="stone" amount="10"/>
<item name="money" amount="5000"/>

View File

@ -17,19 +17,10 @@ end
local function seed(r, email, race, lang)
local f = faction.create(email, race, lang)
local u = unit.create(f, r)
equip_unit(u, "new_faction")
equip_unit(u, "first_unit")
equip_unit(u, "first_" .. race, 7) -- disable old callbacks
u:set_skill("perception", 30)
u:add_item("money", 20000)
items = {
log = 50,
stone = 50,
iron = 50,
laen = 10,
mallorn = 10,
skillpotion = 5
}
for it, num in pairs(items) do
u:add_item(it, num)
end
unit.create(f, r, 5):set_skill("mining", 30)
unit.create(f, r, 5):set_skill("quarrying", 30)
return f
@ -73,6 +64,10 @@ for _, p in ipairs(players) do
local index = math.random(#sel)
start = sel[index]
end
<<<<<<< HEAD
=======
create_curse(nil, r, 'holyground', 1, 52)
>>>>>>> hotfix-3-5-3
num_seeded = 0
end
local dupe = false

View File

@ -16,7 +16,7 @@ end
local function select(regions, limit)
local sel = {}
for r in regions do
if r.terrain~="ocean" and not r.units() then
if not r.plane and r.terrain~="ocean" and not r.units() then
s = score(r)
if s >= limit then
table.insert(sel, r)

View File

@ -434,7 +434,9 @@ static int tolua_equipunit(lua_State * L)
{
unit *u = (unit *)tolua_tousertype(L, 1, 0);
const char *eqname = tolua_tostring(L, 2, 0);
equip_unit(u, get_equipment(eqname));
int mask = (int)tolua_tonumber(L, 3, EQUIP_ALL);
assert(mask > 0);
equip_unit_mask(u, get_equipment(eqname), mask);
return 0;
}