set correct number of outputs for recyclers

This commit is contained in:
Brevven 2024-12-24 13:44:45 -08:00
parent 5a708c0910
commit 9f1be54c70
3 changed files with 20 additions and 4 deletions

View file

@ -1,6 +1,11 @@
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 2.0.1
Date: 2024-12-24
Fixes:
- Fix number of slots in recycling machines to accomdodate extra titanium plate output
---------------------------------------------------------------------------------------------------
Version: 2.0.0 Version: 2.0.0
Date: 2024-12-06 Date: 2024-12-24
Features: Features:
- Works with Factorio 2.0 vanilla and Space Age. - Works with Factorio 2.0 vanilla and Space Age.
Can be added to existing games, but currently uses a workaround to generate ore patches on new chunks when added to an existing game due to an issue (https://forums.factorio.com/124996) Can be added to existing games, but currently uses a workaround to generate ore patches on new chunks when added to an existing game due to an issue (https://forums.factorio.com/124996)

View file

@ -1,6 +1,6 @@
{ {
"name": "bztitanium", "name": "bztitanium",
"version": "2.0.0", "version": "2.0.1",
"factorio_version": "2.0", "factorio_version": "2.0",
"title": "Titanium", "title": "Titanium",
"author": "Brevven", "author": "Brevven",

View file

@ -1,2 +1,13 @@
local util = require("__bztitanium__.data-util"); local util = require("__bztitanium__.data-util")
-- Set correct number of outputs for recyclers
for i, entity in pairs(data.raw.furnace) do
if util.contains(entity.crafting_categories, "recycling-or-hand-crafting") then
if entity.result_inventory_size < #data.raw.recipe["scrap-recycling"].results then
entity.result_inventory_size = #data.raw.recipe["scrap-recycling"].results
end
end
end