This commit is contained in:
Monica Moniot
2023-01-01 13:28:39 -05:00
committed by GitHub
parent e2a05db7ec
commit 9014c834f2
7 changed files with 9 additions and 6 deletions

View File

@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 1.2.7
Date: 2022-1-1
Bugfixes:
- Fixed a bug with items attempting to be loaded into fluid wagons
---------------------------------------------------------------------------------------------------
Version: 1.2.6
Date: 2022-12-30
Bugfixes:

View File

@@ -1,6 +1,6 @@
{
"name": "cybersyn",
"version": "1.2.6",
"version": "1.2.7",
"title": "Project Cybersyn",
"author": "Mami",
"factorio_version": "1.1",

View File

@@ -153,12 +153,10 @@ function create_manifest(map_data, r_station_id, p_station_id, train_id, primary
--locked slots is only taken into account after the train is already approved for dispatch
local locked_slots = p_station.locked_slots
local total_item_slots
if locked_slots > 0 then
local total_item_slots = train.item_slot_capacity
if locked_slots > 0 and total_item_slots > 0 then
local total_cargo_wagons = #train.entity.cargo_wagons
total_item_slots = max(train.item_slot_capacity - total_cargo_wagons*locked_slots, 1)
else
total_item_slots = train.item_slot_capacity
total_item_slots = max(total_item_slots - total_cargo_wagons*locked_slots, 1)
end
local total_liquid_left = train.fluid_capacity

BIN
dev/locked-slots.png Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
dev/priority.png Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

BIN
dev/request-threshold.png Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
dev/tech.png Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB