set new defaults
This commit is contained in:
parent
8b564ca7cf
commit
b8a7676dce
7
init.lua
7
init.lua
@ -7,11 +7,16 @@ dmobs = {}
|
|||||||
dofile(minetest.get_modpath("dmobs").."/api.lua")
|
dofile(minetest.get_modpath("dmobs").."/api.lua")
|
||||||
|
|
||||||
-- Enable dragons (disable to remove tamed dragons and dragon bosses)
|
-- Enable dragons (disable to remove tamed dragons and dragon bosses)
|
||||||
dmobs.dragons = minetest.setting_getbool("dmobs.dragons") or true
|
dmobs.dragons = minetest.setting_getbool("dmobs.dragons") or false
|
||||||
|
|
||||||
-- Enable fireballs/explosions
|
-- Enable fireballs/explosions
|
||||||
dmobs.destructive = minetest.setting_getbool("dmobs.destructive") or false
|
dmobs.destructive = minetest.setting_getbool("dmobs.destructive") or false
|
||||||
|
|
||||||
|
-- Timer for the egg mechanics
|
||||||
|
dmobs.eggtimer = tonumber(minetest.setting_get("dmobs.eggtimer") ) or 100
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Table cloning to reduce code repetition
|
-- Table cloning to reduce code repetition
|
||||||
dmobs.deepclone = function(t) -- deep-copy a table -- from https://gist.github.com/MihailJP/3931841
|
dmobs.deepclone = function(t) -- deep-copy a table -- from https://gist.github.com/MihailJP/3931841
|
||||||
if type(t) ~= "table" then return t end
|
if type(t) ~= "table" then return t end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user