mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-11-29 22:57:37 +02:00
updates
This commit is contained in:
@@ -68,9 +68,8 @@ local function do_item(name, count, inv, storage)
|
|||||||
end
|
end
|
||||||
|
|
||||||
diff = math.min(prev, -diff)
|
diff = math.min(prev, -diff)
|
||||||
|
local inserted = inv.insert({name = name, count = diff})
|
||||||
new_amount = prev - diff
|
new_amount = prev - inserted
|
||||||
inv.insert({name = name, count = diff})
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if new_amount == 0 then
|
if new_amount == 0 then
|
||||||
|
|||||||
@@ -15,10 +15,10 @@ sand_shape = b.change_tile(sand_shape, true, 'sand-1')
|
|||||||
local value = b.manhattan_value
|
local value = b.manhattan_value
|
||||||
|
|
||||||
local ores = {
|
local ores = {
|
||||||
{b.resource(b.full_shape, 'iron-ore', value(250, 1)), 6},
|
{b.resource(b.full_shape, 'iron-ore', value(125, 0.5)), 6},
|
||||||
{b.resource(b.full_shape, 'copper-ore', value(250, 1)), 4},
|
{b.resource(b.full_shape, 'copper-ore', value(125, 0.5)), 4},
|
||||||
{b.resource(b.full_shape, 'stone', value(250, 1)), 1},
|
{b.resource(b.full_shape, 'stone', value(125, 0.5)), 1},
|
||||||
{b.resource(b.full_shape, 'coal', value(250, 1)), 1}
|
{b.resource(b.full_shape, 'coal', value(125, 0.5)), 1}
|
||||||
}
|
}
|
||||||
|
|
||||||
uranium_ore = b.resource(b.full_shape, 'uranium-ore', value(50, 0.25))
|
uranium_ore = b.resource(b.full_shape, 'uranium-ore', value(50, 0.25))
|
||||||
|
|||||||
Reference in New Issue
Block a user