mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-17 18:35:20 +02:00
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.
This commit is contained in:
@@ -53,6 +53,9 @@ public:
|
||||
content_t c_riverbed;
|
||||
content_t c_dust;
|
||||
content_t c_cave_liquid;
|
||||
content_t c_dungeon;
|
||||
content_t c_dungeon_alt;
|
||||
content_t c_dungeon_stair;
|
||||
|
||||
s16 depth_top;
|
||||
s16 depth_filler;
|
||||
|
Reference in New Issue
Block a user