forked from github/server
call create_mage() for familiars
created a new lua file for familiar specializations, not really any content for now.
This commit is contained in:
parent
c78f64de00
commit
6ed9ea2a9b
7 changed files with 10 additions and 7 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
--
|
||||
|
|
3
src/scripts/familiars.lua
Normal file
3
src/scripts/familiars.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
function initfamiliar_lynx(u)
|
||||
print("a lynx is born ;-)")
|
||||
end
|
|
@ -2,6 +2,7 @@ function run_scripts()
|
|||
scripts = {
|
||||
"spells.lua",
|
||||
"extensions.lua",
|
||||
"familiars.lua",
|
||||
"hse/portals.lua",
|
||||
"hse/stats.lua"
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@ function run_scripts()
|
|||
scripts = {
|
||||
"spells.lua",
|
||||
"extensions.lua",
|
||||
"familiars.lua",
|
||||
"hse/portals.lua",
|
||||
"hse/stats.lua"
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue