mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-04 09:42:30 +02:00
removed unsed Game variable
This commit is contained in:
parent
880c0366d1
commit
a0e178fc75
@ -1,6 +1,5 @@
|
||||
local Event = require 'utils.event'
|
||||
local Utils = require 'utils.core'
|
||||
local Game = require 'utils.game'
|
||||
local RS = require 'map_gen.shared.redmew_surface'
|
||||
|
||||
global.original_last_users_by_ent_pos = {}
|
||||
|
@ -1,6 +1,5 @@
|
||||
-- This feature auto-responds to key words or phrases. We use the name/actor Hodor because it is Redmew's beloved discord bot.
|
||||
|
||||
local Game = require 'utils.game'
|
||||
local Event = require 'utils.event'
|
||||
local Color = require 'resources.color_presets'
|
||||
local table = require 'utils.table'
|
||||
|
@ -2,7 +2,6 @@ local Event = require 'utils.event'
|
||||
local Global = require 'utils.global'
|
||||
local Task = require 'utils.task'
|
||||
local Token = require 'utils.token'
|
||||
local Game = require 'utils.game'
|
||||
local Utils = require 'utils.core'
|
||||
|
||||
local player_corpses = {}
|
||||
|
@ -3,7 +3,6 @@
|
||||
local Event = require 'utils.event'
|
||||
local Global = require 'utils.global'
|
||||
local Gui = require 'utils.gui'
|
||||
local Game = require 'utils.game'
|
||||
|
||||
local player_filters = {}
|
||||
|
||||
|
@ -12,7 +12,6 @@
|
||||
local Event = require 'utils.event'
|
||||
local mod_gui = require 'mod-gui'
|
||||
local Command = require 'utils.command'
|
||||
local Game = require 'utils.game'
|
||||
local Gui = require 'utils.gui'
|
||||
local Global = require 'utils.global'
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
local Event = require 'utils.event'
|
||||
local Gui = require 'utils.gui'
|
||||
local Game = require 'utils.game'
|
||||
local Global = require 'utils.global'
|
||||
local Toast = require 'features.gui.toast'
|
||||
local round = math.round
|
||||
|
@ -3,7 +3,6 @@ local Global = require 'utils.global'
|
||||
local Event = require 'utils.event'
|
||||
local Donator = require 'features.donator'
|
||||
local Rank = require 'features.rank_system'
|
||||
local Game = require 'utils.game'
|
||||
local PlayerRewards = require 'utils.player_rewards'
|
||||
local Server = require 'features.server'
|
||||
local Token = require 'utils.token'
|
||||
|
@ -1,6 +1,5 @@
|
||||
local Event = require 'utils.event'
|
||||
local Gui = require 'utils.gui'
|
||||
local Game = require 'utils.game'
|
||||
local Global = require 'utils.global'
|
||||
|
||||
local brush_tool = 'refined-hazard-concrete'
|
||||
|
@ -6,7 +6,6 @@ local Donator = require 'features.donator'
|
||||
local PlayerStats = require 'features.player_stats'
|
||||
local Utils = require 'utils.core'
|
||||
local Report = require 'features.report'
|
||||
local Game = require 'utils.game'
|
||||
local table = require 'utils.table'
|
||||
local Color = require 'resources.color_presets'
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
local PlayerStats = require 'features.player_stats'
|
||||
local Gui = require 'utils.gui'
|
||||
local Color = require 'resources.color_presets'
|
||||
|
@ -3,7 +3,6 @@ local Gui = require 'utils.gui'
|
||||
local Global = require 'utils.global'
|
||||
local Rank = require 'features.rank_system'
|
||||
local Utils = require 'utils.core'
|
||||
local Game = require 'utils.game'
|
||||
local math = require 'utils.math'
|
||||
local Command = require 'utils.command'
|
||||
local Color = require 'resources.color_presets'
|
||||
|
@ -5,7 +5,6 @@ local Token = require 'utils.token'
|
||||
local Gui = require 'utils.gui'
|
||||
local Task = require 'utils.task'
|
||||
local Global = require 'utils.global'
|
||||
local Game = require 'utils.game'
|
||||
|
||||
local format = string.format
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
local Command = require 'utils.command'
|
||||
local Task = require 'utils.task'
|
||||
local Token = require 'utils.token'
|
||||
|
@ -3,7 +3,6 @@ local Event = require 'utils.event'
|
||||
local Token = require 'utils.token'
|
||||
local Task = require 'utils.task'
|
||||
local PlayerStats = require 'features.player_stats'
|
||||
local Game = require 'utils.game'
|
||||
local Command = require 'utils.command'
|
||||
local Global = require 'utils.global'
|
||||
local Retailer = require 'features.retailer'
|
||||
|
@ -1,7 +1,6 @@
|
||||
local Event = require 'utils.event'
|
||||
local Rank = require 'features.rank_system'
|
||||
local Utils = require 'utils.core'
|
||||
local Game = require 'utils.game'
|
||||
local Task = require 'utils.task'
|
||||
local Token = require 'utils.token'
|
||||
local Global = require 'utils.global'
|
||||
|
@ -1,5 +1,4 @@
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
local Command = require 'utils.command'
|
||||
local Server = require 'features.server'
|
||||
local Token = require 'utils.token'
|
||||
|
@ -1,5 +1,4 @@
|
||||
local table = require 'utils.table'
|
||||
local Game = require 'utils.game'
|
||||
local Event = require 'utils.event'
|
||||
local Global = require 'utils.global'
|
||||
local Info = require 'features.gui.info'
|
||||
|
@ -3,7 +3,6 @@
|
||||
]]
|
||||
-- Dependencies
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
local Global = require 'utils.global'
|
||||
local Rank = require 'features.rank_system'
|
||||
local Task = require 'utils.task'
|
||||
|
@ -1,6 +1,5 @@
|
||||
local Event = require 'utils.event'
|
||||
local Global = require 'utils.global'
|
||||
local Game = require 'utils.game'
|
||||
require 'utils.table'
|
||||
local pairs = pairs
|
||||
local sqrt = math.sqrt
|
||||
|
@ -8,7 +8,6 @@
|
||||
]]
|
||||
-- Dependencies
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
local Global = require 'utils.global'
|
||||
local table = require 'utils.table'
|
||||
local Token = require 'utils.token'
|
||||
|
@ -7,7 +7,6 @@ local Utils = require 'utils.core'
|
||||
local Global = require 'utils.global'
|
||||
local table = require 'utils.table'
|
||||
local Task = require 'utils.task'
|
||||
local Game = require 'utils.game'
|
||||
local Rank = require 'features.rank_system'
|
||||
|
||||
local config = global.config.redmew_qol
|
||||
|
@ -45,7 +45,6 @@ local Event = require 'utils.event'
|
||||
local Token = require 'utils.token'
|
||||
local Schedule = require 'utils.task'
|
||||
local PlayerStats = require 'features.player_stats'
|
||||
local Game = require 'utils.game'
|
||||
local math = require 'utils.math'
|
||||
local Color = require 'resources.color_presets'
|
||||
local format = string.format
|
||||
|
@ -3,7 +3,6 @@ local market_items = require 'resources.market_items'
|
||||
local Global = require 'utils.global'
|
||||
local DonatorPerks = require 'resources.donator_perks'
|
||||
local Donator = require 'features.donator'
|
||||
local Game = require 'utils.game'
|
||||
local train_perk_flag = DonatorPerks.train
|
||||
|
||||
local saviour_token_name = 'small-plane' -- item name for what saves players
|
||||
|
@ -1,5 +1,4 @@
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
|
||||
local mines_factor = 1
|
||||
|
||||
|
@ -209,7 +209,6 @@ map = b.translate(map, 0, 30)
|
||||
-- -- Enable this section when the entity restriction modules is finalized
|
||||
-- -- Make sure this works on tiles if needed, otherwise keep function below
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
--Ban entities from sand-1, including tile ghosts. This currently prevents us from using entity_placement_restriction.lua as of 2019-02-22
|
||||
-- Convert to using entity_replacement_restriction.lua once it is possible to do so
|
||||
Event.add(
|
||||
|
@ -2,7 +2,6 @@ local Event = require 'utils.event'
|
||||
local Task = require 'utils.task'
|
||||
local Token = require 'utils.token'
|
||||
local Global = require 'utils.global'
|
||||
local Game = require 'utils.game'
|
||||
local math = require 'utils.math'
|
||||
|
||||
local random = math.random
|
||||
|
@ -2,7 +2,6 @@
|
||||
local Event = require 'utils.event'
|
||||
local Global = require 'utils.global'
|
||||
local CaveCollapse = require 'map_gen.maps.diggy.feature.diggy_cave_collapse'
|
||||
local Game = require 'utils.game'
|
||||
local Report = require 'features.report'
|
||||
local format = string.format
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
|
||||
-- dependencies
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
local ScoreTable = require 'map_gen.maps.diggy.score_table'
|
||||
local Debug = require 'map_gen.maps.diggy.debug'
|
||||
local Template = require 'map_gen.maps.diggy.template'
|
||||
|
@ -9,7 +9,6 @@ local Debug = require 'map_gen.maps.diggy.debug'
|
||||
local Task = require 'utils.task'
|
||||
local Token = require 'utils.token'
|
||||
local Global = require 'utils.global'
|
||||
local Game = require 'utils.game'
|
||||
local CreateParticles = require 'features.create_particles'
|
||||
local RS = require 'map_gen.shared.redmew_surface'
|
||||
local table = require 'utils.table'
|
||||
|
@ -6,7 +6,6 @@
|
||||
|
||||
-- dependencies
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
local RS = require 'map_gen.shared.redmew_surface'
|
||||
|
||||
-- this
|
||||
|
@ -19,7 +19,6 @@ local Token = require 'utils.token'
|
||||
local Task = require 'utils.task'
|
||||
local Queue = require 'utils.queue'
|
||||
local Global = require 'utils.global'
|
||||
local Game = require 'utils.game'
|
||||
|
||||
local insert = table.insert
|
||||
|
||||
|
@ -2,7 +2,6 @@ local Module = {}
|
||||
|
||||
local Gui = require 'utils.gui'
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
local Global = require 'utils.global'
|
||||
|
||||
local main_button_name = Gui.uid_name()
|
||||
|
@ -1,5 +1,4 @@
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
|
||||
local drivers_group = 'Drivers'
|
||||
local random = math.random
|
||||
|
@ -37,7 +37,6 @@
|
||||
)
|
||||
]]
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
local Global = require 'utils.global'
|
||||
local Token = require 'utils.token'
|
||||
local table = require 'utils.table'
|
||||
|
@ -1,4 +1,3 @@
|
||||
local Game = require 'utils.game'
|
||||
local Event = require 'utils.event'
|
||||
|
||||
global.naughty_words = require('resources.naughty_words')
|
||||
|
@ -61,7 +61,6 @@
|
||||
-- Dependencies
|
||||
require 'util'
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
local Global = require 'utils.global'
|
||||
local config = global.config.redmew_surface
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
|
||||
global.allowed_landfill_tiles = {}
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
local Utils = require 'utils.core'
|
||||
local Module = {}
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
local Token = require 'utils.token'
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
local Global = require 'utils.global'
|
||||
|
||||
local Gui = {}
|
||||
|
Loading…
Reference in New Issue
Block a user