diff --git a/conf/e2/config.xml b/conf/e2/config.xml index 9e32218da..5affea141 100644 --- a/conf/e2/config.xml +++ b/conf/e2/config.xml @@ -42,7 +42,7 @@ - + diff --git a/conf/e3/config.xml b/conf/e3/config.xml index 6a5b18b84..35716f332 100644 --- a/conf/e3/config.xml +++ b/conf/e3/config.xml @@ -28,14 +28,6 @@ - - - - - - - - diff --git a/conf/e4/config.xml b/conf/e4/config.xml index 3209c8eed..ac962202c 100644 --- a/conf/e4/config.xml +++ b/conf/e4/config.xml @@ -27,15 +27,6 @@ - - - - - - - - - diff --git a/res/eressea/equipment.xml b/res/eressea/equipment.xml index bf7e38376..efd4f2a3b 100644 --- a/res/eressea/equipment.xml +++ b/res/eressea/equipment.xml @@ -2,18 +2,18 @@ - + - + - + @@ -21,30 +21,30 @@ - + - + - + - + - + - + @@ -58,12 +58,12 @@ - + - + diff --git a/scripts/eressea/autoseed.lua b/scripts/eressea/autoseed.lua index 562c39361..822725804 100644 --- a/scripts/eressea/autoseed.lua +++ b/scripts/eressea/autoseed.lua @@ -64,9 +64,9 @@ local function seed(r, email, race, lang) assert(f) local u = unit.create(f, r) assert(u) - equip_unit(u, "new_faction") - equip_unit(u, "first_unit") - equip_unit(u, "first_" .. race, 7) -- disable old callbacks + equip_unit(u, "autoseed_faction") + equip_unit(u, "autoseed_unit") + equip_unit(u, "autoseed_" .. race, 7) unit.create(f, r, 5):set_skill("mining", 30) unit.create(f, r, 5):set_skill("quarrying", 30) f:set_origin(r) diff --git a/src/kernel/faction.c b/src/kernel/faction.c index 2c6d4d244..e3b80566d 100755 --- a/src/kernel/faction.c +++ b/src/kernel/faction.c @@ -22,7 +22,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "alliance.h" #include "ally.h" #include "curse.h" -#include "equipment.h" #include "group.h" #include "item.h" #include "messages.h" @@ -286,15 +285,10 @@ faction *addfaction(const char *email, const char *password, unit *addplayer(region * r, faction * f) { unit *u; - char buffer[32]; assert(f->units == NULL); faction_setorigin(f, 0, r->x, r->y); u = create_unit(r, f, 1, f->race, 0, NULL, NULL); - equip_items(&u->faction->items, get_equipment("new_faction")); - equip_unit(u, get_equipment("first_unit")); - sprintf(buffer, "first_%s", u_race(u)->_name); - equip_unit(u, get_equipment(buffer)); u->hp = unit_max_hp(u) * u->number; fset(u, UFL_ISNEW); if (f->race == get_race(RC_DAEMON)) {