From b20d01a3f19ea7ad1e788077af1ed5769648e3a1 Mon Sep 17 00:00:00 2001 From: paramat Date: Fri, 28 Jul 2017 03:31:11 +0100 Subject: Dungeons: Use biome 'node_stone' if normal stone types not detected Construct dungeons from the node defined as biome 'node_stone' if 'mapgen_stone', 'mapgen_desert_stone' and 'mapgen_sandstone' are not detected. Feature long-intended by kwolekr/hmmmm and present in code as a TODO. --- src/mapgen.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/mapgen.h') diff --git a/src/mapgen.h b/src/mapgen.h index 7f4b76c3e..931622d3c 100644 --- a/src/mapgen.h +++ b/src/mapgen.h @@ -79,11 +79,11 @@ enum GenNotifyType { NUM_GENNOTIFY_TYPES }; -// TODO(hmmmm/paramat): make stone type selection dynamic enum MgStoneType { MGSTONE_STONE, MGSTONE_DESERT_STONE, MGSTONE_SANDSTONE, + MGSTONE_OTHER, }; struct GenNotifyEvent { @@ -250,8 +250,10 @@ public: virtual void generateCaves(s16 max_stone_y, s16 large_cave_depth); virtual bool generateCaverns(s16 max_stone_y); - virtual void generateDungeons(s16 max_stone_y, MgStoneType stone_type); - virtual MgStoneType generateBiomes(s16 biome_zero_level = 0); + virtual void generateDungeons(s16 max_stone_y, + MgStoneType stone_type, content_t biome_stone); + virtual void generateBiomes(MgStoneType *mgstone_type, + content_t *biome_stone, s16 biome_zero_level); virtual void dustTopNodes(); protected: -- cgit v1.2.3