mirror of
https://github.com/minetest-mods/magma_conduits.git
synced 2024-12-20 20:45:40 +01:00
had to change namegen's name to avoid a collision on ContentDB
This commit is contained in:
parent
ea586b42b6
commit
d4f6f34f30
2
mod.conf
2
mod.conf
@ -1,4 +1,4 @@
|
||||
name = magma_conduits
|
||||
description = Removes default mapgen lava and adds widely-spaced volcanoes and lava "veins".
|
||||
depends = default
|
||||
optional_depends = namegen, doc, named_waypoints
|
||||
optional_depends = name_generator, doc, named_waypoints
|
@ -121,9 +121,9 @@ local get_corner = function(pos)
|
||||
end
|
||||
|
||||
|
||||
local namegen_path = minetest.get_modpath("namegen")
|
||||
if namegen_path then
|
||||
namegen.parse_lines(io.lines(modpath.."/volcano_names.cfg"))
|
||||
local name_generator_path = minetest.get_modpath("name_generator")
|
||||
if name_generator_path then
|
||||
name_generator.parse_lines(io.lines(modpath.."/volcano_names.cfg"))
|
||||
end
|
||||
|
||||
local get_volcano = function(pos)
|
||||
@ -144,18 +144,18 @@ local get_volcano = function(pos)
|
||||
local depth_lava
|
||||
if state < state_extinct then
|
||||
depth_lava = - math.random(1, math.abs(depth_root)) -- extinct, put the lava somewhere deep.
|
||||
if namegen_path then
|
||||
name = namegen.generate("inactive_volcano")
|
||||
if name_generator_path then
|
||||
name = name_generator.generate("inactive_volcano")
|
||||
end
|
||||
elseif state < state_dormant then
|
||||
depth_lava = depth_peak - math.random(5, 50) -- dormant
|
||||
if namegen_path then
|
||||
name = namegen.generate("inactive_volcano")
|
||||
if name_generator_path then
|
||||
name = name_generator.generate("inactive_volcano")
|
||||
end
|
||||
else
|
||||
depth_lava = depth_peak - math.random(1, 25) -- active, put the lava near the top
|
||||
if namegen_path then
|
||||
name = namegen.generate("active_volcano")
|
||||
if name_generator_path then
|
||||
name = name_generator.generate("active_volcano")
|
||||
end
|
||||
color = 0xFF7F00 -- orange
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user