mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-18 03:21:47 +02:00
fix lint errors
This commit is contained in:
parent
e46fcb379e
commit
88b37d9fa6
@ -953,8 +953,6 @@ local function update_market_upgrade_description(outpost_data)
|
||||
end
|
||||
str[#str] = nil
|
||||
|
||||
local prototype = Retailer.get_items(outpost_id)['upgrade']
|
||||
|
||||
prototype.description = str
|
||||
prototype.disabled = false
|
||||
|
||||
@ -1228,7 +1226,6 @@ Public.worm_turret_callback =
|
||||
)
|
||||
|
||||
local function add_magic_crafter_output(entity, output, distance, outpost_id)
|
||||
local outpost_data = outposts[outpost_id]
|
||||
local rate = output.min_rate + output.distance_factor * distance
|
||||
|
||||
local fluidbox_index = output.fluidbox_index
|
||||
@ -1345,8 +1342,8 @@ Public.magic_item_crafting_callback_weighted =
|
||||
if #output == 0 then
|
||||
add_magic_crafter_output(entity, output, distance, outpost_id)
|
||||
else
|
||||
for i = 1, #output do
|
||||
local o = output[i]
|
||||
for o_i = 1, #output do
|
||||
local o = output[o_i]
|
||||
add_magic_crafter_output(entity, o, distance, outpost_id)
|
||||
end
|
||||
end
|
||||
|
@ -17,11 +17,6 @@ local loot_callback =
|
||||
end
|
||||
)
|
||||
|
||||
local factory_loot = {
|
||||
{stack = {name = 'science-pack-1', count = 75, distance_factor = 1 / 2}, weight = 5},
|
||||
{stack = {name = 'science-pack-2', count = 50, distance_factor = 1 / 2}, weight = 5}
|
||||
}
|
||||
|
||||
local factory_loot = {
|
||||
{
|
||||
stack = {
|
||||
|
Loading…
Reference in New Issue
Block a user