use minetest. Get modpath less times, move stairsplus testing out of that file, update util.lua and make mapgen rarity and size better configurable

This commit is contained in:
HybridDog
2015-11-21 23:37:28 +01:00
parent 097f5f5419
commit 4a30e67f46
4 changed files with 93 additions and 81 deletions

View File

@ -21,8 +21,8 @@ local function upper_rarity(rarity)
return math.sign(rarity)*math.sin(math.abs(rarity)*math.pi/2)
end
local rarity = 18 --snow.mapgen_rarity
local size = 210 --snow.mapgen_size
local rarity = snow.mapgen_rarity
local size = snow.mapgen_size
local nosmooth_rarity = 1-rarity/50
local perlin_scale = size*100/rarity