Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dmobs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Illuna-Minetest
dmobs
Commits
8576e4b0
Commit
8576e4b0
authored
Oct 02, 2017
by
anonymous
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed deprecated calls.
parent
8955af2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
init.lua
init.lua
+7
-7
No files found.
init.lua
View file @
8576e4b0
...
...
@@ -7,21 +7,21 @@ dmobs = {}
dofile
(
minetest
.
get_modpath
(
"dmobs"
)
..
"/api.lua"
)
-- Enable dragons (disable to remove tamed dragons and dragon bosses)
dmobs
.
dragons
=
minetest
.
setting
_getbool
(
"dmobs.dragons"
)
if
dmobs
.
dragons
==
nil
then
dmobs
.
dragons
=
minetest
.
setting
s
:
get_bool
(
"dmobs.dragons"
)
if
dmobs
.
dragons
==
nil
then
dmobs
.
dragons
=
true
end
dmobs
.
regulars
=
minetest
.
setting
_get
bool
(
"dmobs.regulars"
)
dmobs
.
regulars
=
minetest
.
setting
s
:
get_
bool
(
"dmobs.regulars"
)
if
dmobs
.
regulars
==
nil
then
dmobs
.
regulars
=
true
end
-- Enable fireballs/explosions
dmobs
.
destructive
=
minetest
.
setting
_get
bool
(
"dmobs.destructive"
)
or
false
dmobs
.
destructive
=
minetest
.
setting
s
:
get_
bool
(
"dmobs.destructive"
)
or
false
-- Timer for the egg mechanics
dmobs
.
eggtimer
=
tonumber
(
minetest
.
setting
_
get
(
"dmobs.eggtimer"
)
)
or
100
dmobs
.
eggtimer
=
tonumber
(
minetest
.
setting
s
:
get
(
"dmobs.eggtimer"
)
)
or
100
...
...
@@ -64,7 +64,7 @@ local mobslist = {
"badger"
,
"butterfly"
,
"elephant"
,
-- baddies
"pig_evil"
,
"fox"
,
...
...
@@ -96,7 +96,7 @@ else
loadmob
(
"great_dragon"
,
"/dragons/"
)
loadmob
(
"water_dragon"
,
"/dragons/"
)
loadmob
(
"wyvern"
,
"/dragons/"
)
dofile
(
minetest
.
get_modpath
(
"dmobs"
)
..
"/dragons/eggs.lua"
)
end
dofile
(
minetest
.
get_modpath
(
"dmobs"
)
..
"/arrows/dragonfire.lua"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment