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.
|
/* these familiars have no special skills.
|
||||||
*/
|
*/
|
||||||
snprintf(fname, sizeof(fname), "%s_familiar", u->race->_name[0]);
|
snprintf(fname, sizeof(fname), "%s_familiar", u->race->_name[0]);
|
||||||
|
create_mage(u, M_GRAU);
|
||||||
equip_unit(u, get_equipment(fname));
|
equip_unit(u, get_equipment(fname));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -168,6 +168,7 @@ lua_initfamiliar(unit * u)
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf(fname, sizeof(fname), "%s_familiar", u->race->_name[0]);
|
snprintf(fname, sizeof(fname), "%s_familiar", u->race->_name[0]);
|
||||||
|
create_mage(u, M_GRAU);
|
||||||
equip_unit(u, get_equipment(fname));
|
equip_unit(u, get_equipment(fname));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ function run_scripts()
|
||||||
scripts = {
|
scripts = {
|
||||||
"spells.lua",
|
"spells.lua",
|
||||||
"extensions.lua",
|
"extensions.lua",
|
||||||
|
"familiars.lua",
|
||||||
"write_emails.lua",
|
"write_emails.lua",
|
||||||
"eressea/eternath.lua",
|
"eressea/eternath.lua",
|
||||||
"eressea/wedding-jadee.lua",
|
"eressea/wedding-jadee.lua",
|
||||||
|
@ -94,12 +95,6 @@ function process(orders)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- demo: how to add a special familiars-constructor
|
|
||||||
function initfamiliar_lynx(u)
|
|
||||||
print("a lynx is born ;-)")
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- main body of script
|
-- 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 = {
|
scripts = {
|
||||||
"spells.lua",
|
"spells.lua",
|
||||||
"extensions.lua",
|
"extensions.lua",
|
||||||
|
"familiars.lua",
|
||||||
"hse/portals.lua",
|
"hse/portals.lua",
|
||||||
"hse/stats.lua"
|
"hse/stats.lua"
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ function run_scripts()
|
||||||
scripts = {
|
scripts = {
|
||||||
"spells.lua",
|
"spells.lua",
|
||||||
"extensions.lua",
|
"extensions.lua",
|
||||||
|
"familiars.lua",
|
||||||
"hse/portals.lua",
|
"hse/portals.lua",
|
||||||
"hse/stats.lua"
|
"hse/stats.lua"
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,7 @@ function process(orders)
|
||||||
return -1
|
return -1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--
|
--
|
||||||
-- main body of script
|
-- main body of script
|
||||||
--
|
--
|
||||||
|
@ -56,6 +56,7 @@ print("- Running wdw-run.lua")
|
||||||
scripts = {
|
scripts = {
|
||||||
"spells.lua",
|
"spells.lua",
|
||||||
"extensions.lua",
|
"extensions.lua",
|
||||||
|
"familiars.lua",
|
||||||
"write_emails.lua",
|
"write_emails.lua",
|
||||||
"wdw/sphinx.lua",
|
"wdw/sphinx.lua",
|
||||||
"wdw/phoenix.lua",
|
"wdw/phoenix.lua",
|
||||||
|
|
Loading…
Reference in a new issue