Spell Check and Lua Check

This commit is contained in:
Cooldude2606
2019-01-11 22:32:30 +00:00
parent 7110b76444
commit 082d9e5439
65 changed files with 760 additions and 724 deletions

View File

@@ -1,14 +1,14 @@
--- Adds a science count gui to the game that shows toatal made and per minute
--- Adds a science count gui to the game that shows total made and per minute
-- @module ExpGamingInfo.Science
-- @author Cooldude2606
-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE
-- @alais ThisModule
-- @alias ThisModule
-- Module Require
local Gui = require('ExpGamingCore.Gui')
local Game = require('FactorioStdLib.Game')
-- Local Varibles
-- Local Variables
local science_packs = {
'science-pack-1',
'science-pack-2',
@@ -23,7 +23,7 @@ local science_packs = {
local module_verbose = false
local ThisModule = {
on_init=function()
if loaded_modules['ExpGamingCore.Sync^4.0.0'] then require(module_path..'/src/sync') end
if loaded_modules['ExpGamingCore.Sync^4.0.0'] then require(module_path..'/src/sync',{science_packs=science_packs}) end
end
}
@@ -48,7 +48,7 @@ ThisModule.Gui = Gui.left{
verbose('Added Science Global for: '..player.force.name)
global[player.force.name] = table.deepcopy(global._base)
end
force_data = global[player.force.name]
local force_data = global[player.force.name]
frame.caption = {'ExpGamingInfo-Science.name'}
frame.add{
type='label',
@@ -101,5 +101,5 @@ ThisModule.Gui = Gui.left{
script.on_event(defines.events.on_research_finished,function(event) Gui.left.update('science') end)
-- Module Return
-- when called will toogle the gui for that player, if no player it will update the gui
-- when called will toggle the gui for that player, if no player it will update the gui
return setmetatable(ThisModule,{_call=function(self,...) self.Gui(...) end})