1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-30 04:30:58 +02:00

Fixed linting

This commit is contained in:
SimonFlapse 2019-03-03 16:40:58 +01:00
parent 9bf6bde27a
commit 6781c6438d
3 changed files with 4 additions and 7 deletions

View File

@ -35,7 +35,6 @@ end
local function create_tag(creating_force, data, remove)
local surface = RS.get_surface()
local tags
for _, force in pairs(game.forces) do
if (string.find(force.name, 'quadrant')) ~= nil then
if force.name ~= creating_force.name then
@ -107,7 +106,6 @@ local function research_finished(event)
return
end
local technology = event.research
local player_force = technology.force
for _, force in pairs(game.forces) do
if (string.find(force.name, 'quadrant')) ~= nil then

View File

@ -62,7 +62,7 @@ Version: v1.0
]]
)
redmew_config.paint.enabled = true
redmew_config.paint.enabled = false
redmew_config.player_create.starting_items = {
{name = 'iron-plate', count = 7},
@ -96,7 +96,7 @@ redmew_config.hail_hydra.hydras = {
}
}
local function spawn_market(surface, force, position)
local function spawn_market(surface, position)
position.x = round(position.x)
position.y = round(position.y - 4)
@ -306,7 +306,7 @@ local function quadrants(x, y)
end
if (abs_x == 132) and (abs_y == 132) then
spawn_market(RS.get_surface(), game.forces.player, {x = x, y = y})
spawn_market(RS.get_surface(), {x = x, y = y})
end
if (abs_x >= 144 and abs_x <= 176 and abs_y >= 144 and abs_y <= 176) then

View File

@ -1,12 +1,11 @@
local Event = require 'utils.event'
local Game = require 'utils.game'
local Item_to_chest = require 'map_gen.maps.quadrants.item_to_chest'
local RS = require 'map_gen.shared.redmew_surface'
local pow = math.pow
local rail_locations = {26, 208}
player_switched_force = require 'map_gen.maps.quadrants.switch_team'.get_event()
local player_switched_force = require 'map_gen.maps.quadrants.switch_team'.get_event()
local function clear_inventory_train(event)
local player = Game.get_player_by_index(event.player_index)