2018-05-08 22:23:07 +02:00
|
|
|
local b = require "map_gen.shared.builders"
|
2018-01-20 00:10:20 +02:00
|
|
|
local pic = require "map_gen.data.presets.turkey"
|
2019-01-16 22:33:32 +02:00
|
|
|
local RS = require 'map_gen.shared.redmew_surface'
|
|
|
|
local MGSP = require 'resources.map_gen_settings'
|
2019-11-28 03:26:37 +02:00
|
|
|
local Event = require 'utils.event'
|
|
|
|
local turkey_message_random = require 'resources.turkey_messages'
|
2019-01-16 22:33:32 +02:00
|
|
|
|
|
|
|
RS.set_map_gen_settings(
|
|
|
|
{
|
|
|
|
MGSP.cliff_none
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
2019-11-28 03:26:37 +02:00
|
|
|
Event.add(
|
|
|
|
defines.events.on_tick,
|
|
|
|
function(event)
|
|
|
|
if event.tick % 60*600 == 0 then
|
|
|
|
local message = turkey_message_random[math.random(#turkey_message_random)]
|
|
|
|
game.print(message)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
)
|
|
|
|
|
2019-01-16 22:33:32 +02:00
|
|
|
pic = b.decompress(pic)
|
2017-11-23 01:33:03 +02:00
|
|
|
|
2018-05-08 22:23:07 +02:00
|
|
|
local shape = b.picture(pic)
|
2019-01-16 22:33:32 +02:00
|
|
|
shape = b.scale(shape, 4, 4)
|
|
|
|
shape = b.translate(shape, -300, 500)
|
2017-11-23 01:33:03 +02:00
|
|
|
|
|
|
|
return shape
|