1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00
RedMew/map_gen/maps/vanilla.lua

21 lines
507 B
Lua
Raw Normal View History

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'
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