Skip to content

Commit

Permalink
Merge pull request #1014 from Zahir-Khan/turkey
Browse files Browse the repository at this point in the history
Turkey.lua Improvements
  • Loading branch information
theorangeangle authored Dec 4, 2019
2 parents c1359be + 09922c0 commit 17c433a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions map_gen/maps/turkey.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ local turkey_message_random = require 'resources.turkey_messages'

RS.set_map_gen_settings(
{
MGSP.ore_oil_none,
MGSP.cliff_none
}
)
Expand Down Expand Up @@ -146,17 +147,14 @@ local ore_grid = b.grid_pattern_full_overlap(ore_pattern, 50, 50, 96, 96)
ore_grid = b.translate(ore_grid, -60, -20)

--spews a random turkey fact in chat every 10 minutes.
Event.add(
defines.events.on_tick,
function(event)
if event.tick % 36000 == 0 then

Event.on_nth_tick(36000,
function()
local message = turkey_message_random[math.random(#turkey_message_random)]
game.print('[color=yellow][font=compi]' .. message .. '[/font][/color]')
end
end
)


pic = b.decompress(pic)

--idk why this works but it does, played whack a mole/whack a variable to get it to clear all errors
Expand Down

0 comments on commit 17c433a

Please sign in to comment.