1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-11-06 09:09:26 +02:00

Fix other lint warnings

This commit is contained in:
plague006
2018-11-22 18:14:58 -05:00
parent b6c8f32c14
commit b85555bc00
2 changed files with 6 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ local function no_resources(x, y, world, tile)
end
local names = {
'biter-spawner',
'biter-spawner',
'spitter-spawner'
}
@@ -217,10 +217,10 @@ for _, v in pairs(ores) do
table.insert(total_weights, t)
end
local p_cols = 50
local p_rows = 50
p_cols = 50
p_rows = 50
local pattern = {}
pattern = {}
for _ = 1, p_rows do
local row = {}
@@ -325,7 +325,7 @@ local starting_area = b.any{
}
tetriminos_shape = b.any{tetriminos_shape, starting_area}
local ores = b.grid_pattern_overlap(pattern, p_cols, p_rows, t_width, t_width)
ores = b.grid_pattern_overlap(pattern, p_cols, p_rows, t_width, t_width)
ores = b.translate(ores, t_h_width, t_h_width)
tetriminos_shape = b.apply_entity(tetriminos_shape, ores) -- add ores to tetriminoes
@@ -360,4 +360,4 @@ map = b.translate(map, 0, -t_width / 2)
map = b.apply_effect(map, no_resources)
return map
return map

View File

@@ -34,7 +34,6 @@ local ham = b.picture(require 'map_gen.data.presets.ham')
ham = b.scale(ham, 64 / 127) --0.5
turkey = b.scale(turkey,0.2)
local ores_patch = b.circle(16)
local function value(base, mult, pow)
return function(x, y)
local d = math.sqrt(x * x + y * y)