Merge pull request #9 from everamzah/everamzah/fix_vars

Fix var names.
master
D00Med 2016-09-10 06:59:29 +10:00 committed by GitHub
commit ae6ead6e59
3 changed files with 12 additions and 14 deletions

View File

@ -1,8 +1,5 @@
-- Enable fireballs/explosions
dmobs.destructive = true
-- Fox
if destructive then
if dmobs.destructive then
mobs:register_mob("dmobs:pig_evil", {
type = "monster",
passive = true,
@ -232,7 +229,7 @@ mobs:register_mob("dmobs:orc_redesign", {
},
})
if not dragons == true then
if not dmobs.dragons == true then
mobs:register_spawn("dmobs:orc", {"default:snow","default:snow_block", "default:desert_sand"}, 20, 10, 15000, 2, 31000)
else
mobs:register_spawn("dmobs:orc", {"default:snow","default:snow_block", "default:desert_sand"}, 20, 10, 350, 2, 31000)
@ -289,7 +286,7 @@ mobs:register_mob("dmobs:ogre", {
},
})
if not dragons == true then
if not dmobs.dragons == true then
mobs:register_spawn("dmobs:ogre", {"default:snow","default:dirt_with_dry_grass", "default:desert_sand"}, 20, 10, 15000, 2, 31000)
else
mobs:register_spawn("dmobs:ogre", {"default:snow","default:dirt_with_dry_grass", "default:desert_sand"}, 20, 10, 350, 2, 31000)
@ -367,7 +364,7 @@ else
})
--Thanks to Tenplus1
if destructive == true then
if dmobs.destructive == true then
mobs:register_arrow("dmobs:fire", {
visual = "sprite",
visual_size = {x = 0.5, y = 0.5},

View File

@ -1,5 +1,3 @@
dmobs = {}
--thanks to diriel, blert2112 and taikedz
local step_custom = function(self, dtime)
@ -14,9 +12,9 @@ local tamed_dragons = {}
local node_hit = {}
local destructive = true
dmobs.destructive = true
if destructive == true then
if dmobs.destructive == true then
node_hit = function(self, pos, node)
mobs:explosion(pos, 2, 1, 1)
end

View File

@ -6,15 +6,18 @@ dmobs = {}
dofile(minetest.get_modpath("dmobs").."/api.lua")
-- Enable dragons (disable to remove tamed dragons and dragon bosses)
dmobs.dragons = true
-- Enable fireballs/explosions
dmobs.destructive = true
--peaceful mobs setting
if not minetest.setting_getbool("only_peaceful_mobs") then
dofile(minetest.get_modpath("dmobs").."/baddies.lua")
end
-- Enable dragons (disable to remove tamed dragons and dragon bosses)
dmobs.dragons = true
--friendly mobs
mobs:register_mob("dmobs:panda", {