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:
@@ -35,7 +35,7 @@ local function no_resources(x, y, world, tile)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local names = {
|
local names = {
|
||||||
'biter-spawner',
|
'biter-spawner',
|
||||||
'spitter-spawner'
|
'spitter-spawner'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -217,10 +217,10 @@ for _, v in pairs(ores) do
|
|||||||
table.insert(total_weights, t)
|
table.insert(total_weights, t)
|
||||||
end
|
end
|
||||||
|
|
||||||
local p_cols = 50
|
p_cols = 50
|
||||||
local p_rows = 50
|
p_rows = 50
|
||||||
|
|
||||||
local pattern = {}
|
pattern = {}
|
||||||
|
|
||||||
for _ = 1, p_rows do
|
for _ = 1, p_rows do
|
||||||
local row = {}
|
local row = {}
|
||||||
@@ -325,7 +325,7 @@ local starting_area = b.any{
|
|||||||
}
|
}
|
||||||
|
|
||||||
tetriminos_shape = b.any{tetriminos_shape, starting_area}
|
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)
|
ores = b.translate(ores, t_h_width, t_h_width)
|
||||||
|
|
||||||
tetriminos_shape = b.apply_entity(tetriminos_shape, ores) -- add ores to tetriminoes
|
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)
|
map = b.apply_effect(map, no_resources)
|
||||||
|
|
||||||
return map
|
return map
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ local ham = b.picture(require 'map_gen.data.presets.ham')
|
|||||||
ham = b.scale(ham, 64 / 127) --0.5
|
ham = b.scale(ham, 64 / 127) --0.5
|
||||||
turkey = b.scale(turkey,0.2)
|
turkey = b.scale(turkey,0.2)
|
||||||
|
|
||||||
local ores_patch = b.circle(16)
|
|
||||||
local function value(base, mult, pow)
|
local function value(base, mult, pow)
|
||||||
return function(x, y)
|
return function(x, y)
|
||||||
local d = math.sqrt(x * x + y * y)
|
local d = math.sqrt(x * x + y * y)
|
||||||
|
|||||||
Reference in New Issue
Block a user