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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user