Update control.lua

Fixed some spelling and added a nice dash to make it look better
This commit is contained in:
mark9064
2017-09-12 20:08:33 +01:00
committed by Cooldude2606
parent 3c94a6c1ba
commit ba79ebe975

View File

@@ -6,7 +6,7 @@ Contact a member of management on our discord to seek permission to use our code
Any changes that you may make to the code are yours but that does not make the script yours.
Discord: https://discord.gg/XSsBV6b
The credit below may be used by another script do not remove.
The credit below may be used by another script - do not remove.
]]
local credits = {{
name='Control',
@@ -28,11 +28,11 @@ Event.register(defines.events.on_tick,init)
--loads all the other scripts
Event.gui_update = script.generate_event_name()
credit_loop(require("locale/file-header"))
--below 'game.tick/(3600*game.speed)) % 15 == 0' raises the gui_update event every 15 minutes fell free to change the update time on that
--below 'game.tick/(3600*game.speed)) % 15 == 0' raises the gui_update event every 15 minutes - feel free to change the update time
Event.register(defines.events.on_tick, function(event)
if (game.tick/(3600*game.speed)) % 15 == 0 then
for _,player in pairs(game.connected_players) do sudo(find_new_rank,{player}) end
script.raise_event(Event.gui_update,{tick=game.tick})
end
end)
Event.register(-1,function() global.credits = credits end)
Event.register(-1,function() global.credits = credits end)