From 549cfd9db80c858bdc8d23a237ea57ccf5f68400 Mon Sep 17 00:00:00 2001 From: Paramat Date: Thu, 4 Jan 2018 23:10:55 +0000 Subject: Biomes: Add vertical biome blend (#6853) Add 'vertical blend' parameter to biome registration that defines how many nodes above the biome's 'y max' limit the blend will extend. --- src/script/lua_api/l_mapgen.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/script/lua_api/l_mapgen.cpp') diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp index e39370323..b526111d4 100644 --- a/src/script/lua_api/l_mapgen.cpp +++ b/src/script/lua_api/l_mapgen.cpp @@ -392,6 +392,7 @@ Biome *read_biome_def(lua_State *L, int index, INodeDefManager *ndef) b->y_max = getintfield_default(L, index, "y_max", 31000); b->heat_point = getfloatfield_default(L, index, "heat_point", 0.f); b->humidity_point = getfloatfield_default(L, index, "humidity_point", 0.f); + b->vertical_blend = getintfield_default(L, index, "vertical_blend", 0); b->flags = 0; //reserved std::vector &nn = b->m_nodenames; -- cgit v1.2.3