]> git.lizzy.rs Git - dragonfireclient.git/commit - src/mapgen/mapgen_flat.cpp
Biome API / dungeons: Add biome-defined dungeon nodes
authorParamat <paramat@users.noreply.github.com>
Sat, 7 Apr 2018 21:09:54 +0000 (22:09 +0100)
committerGitHub <noreply@github.com>
Sat, 7 Apr 2018 21:09:54 +0000 (22:09 +0100)
commit746ca41f58e356b0fbeeca1b43b7061ad1e1c02d
treef4cda48dac60ca7d8145de64cc2a208e7420d972
parent460b375cad05cd1c32a061aeef2fd1dfb3fb95b4
Biome API / dungeons: Add biome-defined dungeon nodes

Add new biome fields 'node_dungeon', 'node_dungeon_alt', 'node_dungeon_stair'.
If 'node_dungeon' is not defined dungeons fall back to classic behaviour.

Remove messy and imprecise dungeon material code from 'generateBiomes()'.
Code deciding dungeon materials is now in 'generateDungeons()' and uses the
biome at mapchunk centre for more precision.

Remove hardcoded 'MG_STONE' types as long intended.
12 files changed:
doc/lua_api.txt
src/mapgen/mapgen.cpp
src/mapgen/mapgen.h
src/mapgen/mapgen_carpathian.cpp
src/mapgen/mapgen_flat.cpp
src/mapgen/mapgen_fractal.cpp
src/mapgen/mapgen_v5.cpp
src/mapgen/mapgen_v7.cpp
src/mapgen/mapgen_valleys.cpp
src/mapgen/mg_biome.cpp
src/mapgen/mg_biome.h
src/script/lua_api/l_mapgen.cpp