diff --git a/conf/e2/config.xml b/conf/e2/config.xml
index 0ff1d67ee..f5b5a189c 100644
--- a/conf/e2/config.xml
+++ b/conf/e2/config.xml
@@ -33,10 +33,13 @@
-
-
-
-
+
+
+
+
+
+
+
diff --git a/conf/e3/config.xml b/conf/e3/config.xml
index 958db184f..31d9b31a7 100644
--- a/conf/e3/config.xml
+++ b/conf/e3/config.xml
@@ -32,7 +32,6 @@
-
diff --git a/conf/e4/config.xml b/conf/e4/config.xml
index eb881901c..c8d6b21a3 100644
--- a/conf/e4/config.xml
+++ b/conf/e4/config.xml
@@ -32,7 +32,6 @@
-
diff --git a/scripts/newplayer.lua b/scripts/newplayer.lua
index 9d64f585b..9b3b75791 100644
--- a/scripts/newplayer.lua
+++ b/scripts/newplayer.lua
@@ -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
diff --git a/scripts/populate.lua b/scripts/populate.lua
index 5df2ad92f..9ab1b5bcb 100644
--- a/scripts/populate.lua
+++ b/scripts/populate.lua
@@ -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)
diff --git a/src/bindings.c b/src/bindings.c
index 6e61dc186..3e842ba92 100755
--- a/src/bindings.c
+++ b/src/bindings.c
@@ -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;
}