2018-09-30 22:20:41 +02:00
|
|
|
local b = require 'map_gen.shared.builders'
|
|
|
|
|
|
|
|
local pic = require 'map_gen.data.presets.vanilla'
|
|
|
|
local ore_mask = require 'map_gen.data.presets.vanilla-ore-mask'
|
|
|
|
|
2019-11-12 18:48:37 +02:00
|
|
|
local tiny_ores = require('map_gen.entities.tiny_ores')(256)
|
2018-09-30 22:20:41 +02:00
|
|
|
|
|
|
|
local map = b.picture(pic)
|
|
|
|
|
|
|
|
local ores = b.picture(ore_mask)
|
|
|
|
ores = b.choose(ores, tiny_ores, b.no_entity)
|
|
|
|
|
|
|
|
map = b.apply_entity(map, ores)
|
|
|
|
|
|
|
|
map = b.single_pattern(map, pic.width, pic.height)
|
|
|
|
|
|
|
|
map = b.change_tile(map, 'out-of-map', 'deepwater')
|
|
|
|
map = b.fish(map, 0.0025)
|
|
|
|
|
|
|
|
return map
|