mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-18 03:21:47 +02:00
updates
This commit is contained in:
parent
c54a4aad6d
commit
647e5ba96c
@ -1,35 +1,3 @@
|
||||
local b = require 'map_gen.shared.builders'
|
||||
local gb = require 'map_gen.shared.global_builders'
|
||||
local Token = require('utils.global_token')
|
||||
|
||||
local tiles = {
|
||||
'grass-1',
|
||||
'concrete',
|
||||
'dirt-1',
|
||||
'stone-path',
|
||||
'lab-dark-1',
|
||||
'lab-white'
|
||||
}
|
||||
|
||||
local shapes = {
|
||||
gb.pack(require('map_gen.presets.fruit_loops')),
|
||||
gb.pack(require('map_gen.presets.creation_of_adam'))
|
||||
}
|
||||
|
||||
local function pattern_func()
|
||||
local i = math.random(#shapes)
|
||||
--return gb.tile(tiles[i])
|
||||
return shapes[i]
|
||||
end
|
||||
|
||||
local pt = Token.register(pattern_func)
|
||||
|
||||
local shape = gb.grid_pattern_endless({}, 128, 128, pt)
|
||||
|
||||
shape = gb.unpack(shape)
|
||||
|
||||
--shape = b.rotate(shape, math.rad(45))
|
||||
|
||||
--return shape
|
||||
|
||||
return b.rotate(require('map_gen.presets.creation_of_adam'), math.rad(45))
|
||||
return b.rectangular_spiral(64)
|
||||
|
Loading…
Reference in New Issue
Block a user