2017-07-21 18:43:34 +02:00
|
|
|
local function on_tick()
|
2018-01-07 12:20:57 +02:00
|
|
|
walk_on_tick()
|
|
|
|
if game.tick % 60 == 0 then
|
2017-07-21 18:43:34 +02:00
|
|
|
poll_on_second()
|
2018-01-07 12:20:57 +02:00
|
|
|
walk_distance_on_second()
|
|
|
|
if game.tick % 1200 == 0 then
|
|
|
|
player_list_on_12_seconds()
|
|
|
|
end
|
2017-07-23 04:39:02 +02:00
|
|
|
if game.tick % 180 == 0 then
|
2017-07-21 18:43:34 +02:00
|
|
|
fish_market_on_180_ticks()
|
2017-08-10 20:04:43 +02:00
|
|
|
if game.tick % 900 == 0 then
|
|
|
|
refill_well()
|
|
|
|
end
|
2018-01-07 12:20:57 +02:00
|
|
|
end
|
2017-07-21 18:43:34 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-01-07 12:20:57 +02:00
|
|
|
Event.register(defines.events.on_tick, on_tick)
|