mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-28 20:05:22 +09:00
Spell Check and Lua Check
This commit is contained in:
@@ -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})
|
||||
Reference in New Issue
Block a user