call create_mage() for familiars

created a new lua file for familiar specializations, not really any content for now.
This commit is contained in:
Enno Rehling 2006-02-26 13:24:16 +00:00
parent c78f64de00
commit 6ed9ea2a9b
7 changed files with 10 additions and 7 deletions

View File

@ -322,6 +322,7 @@ oldfamiliars(unit * u)
/* these familiars have no special skills.
*/
snprintf(fname, sizeof(fname), "%s_familiar", u->race->_name[0]);
create_mage(u, M_GRAU);
equip_unit(u, get_equipment(fname));
}

View File

@ -168,6 +168,7 @@ lua_initfamiliar(unit * u)
}
snprintf(fname, sizeof(fname), "%s_familiar", u->race->_name[0]);
create_mage(u, M_GRAU);
equip_unit(u, get_equipment(fname));
}

View File

@ -25,6 +25,7 @@ function run_scripts()
scripts = {
"spells.lua",
"extensions.lua",
"familiars.lua",
"write_emails.lua",
"eressea/eternath.lua",
"eressea/wedding-jadee.lua",
@ -94,12 +95,6 @@ function process(orders)
end
end
-- demo: how to add a special familiars-constructor
function initfamiliar_lynx(u)
print("a lynx is born ;-)")
end
--
-- main body of script
--

View File

@ -0,0 +1,3 @@
function initfamiliar_lynx(u)
print("a lynx is born ;-)")
end

View File

@ -2,6 +2,7 @@ function run_scripts()
scripts = {
"spells.lua",
"extensions.lua",
"familiars.lua",
"hse/portals.lua",
"hse/stats.lua"
}

View File

@ -2,6 +2,7 @@ function run_scripts()
scripts = {
"spells.lua",
"extensions.lua",
"familiars.lua",
"hse/portals.lua",
"hse/stats.lua"
}

View File

@ -46,7 +46,7 @@ function process(orders)
return -1
end
end
--
-- main body of script
--
@ -56,6 +56,7 @@ print("- Running wdw-run.lua")
scripts = {
"spells.lua",
"extensions.lua",
"familiars.lua",
"write_emails.lua",
"wdw/sphinx.lua",
"wdw/phoenix.lua",