Commit 441964a7 authored by Tai Kedzierski's avatar Tai Kedzierski

Pilot normal dragons

* Added piloting to normal dragons
* Load dragon arrows always
parent c049d603
--dragon
dofile(minetest.get_modpath("dmobs").."/dragons/piloting.lua")
mobs:register_mob("dmobs:dragon", {
type = "monster",
passive = false,
......@@ -63,6 +65,8 @@ mobs:register_mob("dmobs:dragon", {
punch_end = 47,
},
knock_back = 2,
do_custom = dmobs.dragon.step_custom,
on_rightclick = dmobs.dragon.on_rc
})
......
......@@ -8,9 +8,10 @@ dofile(minetest.get_modpath("dmobs").."/api.lua")
-- Enable dragons (disable to remove tamed dragons and dragon bosses)
dmobs.dragons = minetest.setting_getbool("dmobs.dragons") or false
dmobs.regulars = minetest.setting_getbool("dmobs.regulars") or false
-- Enable fireballs/explosions
dmobs.destructive = minetest.setting_getbool("dmobs.destructive") or false
dmobs.destructive = minetest.setting_getbool("dmobs.destructive") or true
-- Timer for the egg mechanics
dmobs.eggtimer = tonumber(minetest.setting_get("dmobs.eggtimer") ) or 100
......@@ -68,8 +69,10 @@ local mobslist = {
"ogre",
}
for _,mobname in pairs(mobslist) do
loadmob(mobname)
if dmobs.regulars then
for _,mobname in pairs(mobslist) do
loadmob(mobname)
end
end
-- dragons!!
......@@ -87,9 +90,9 @@ else
loadmob("wyvern","/dragons/")
dofile(minetest.get_modpath("dmobs").."/dragons/eggs.lua")
dofile(minetest.get_modpath("dmobs").."/arrows/dragonfire.lua")
dofile(minetest.get_modpath("dmobs").."/arrows/dragonarrows.lua")
end
dofile(minetest.get_modpath("dmobs").."/arrows/dragonfire.lua")
dofile(minetest.get_modpath("dmobs").."/arrows/dragonarrows.lua")
-- General arrow definitions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment