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