mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-11 06:08:19 -06:00
1.2.7 (#24)
This commit is contained in:
@@ -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
|
Version: 1.2.6
|
||||||
Date: 2022-12-30
|
Date: 2022-12-30
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cybersyn",
|
"name": "cybersyn",
|
||||||
"version": "1.2.6",
|
"version": "1.2.7",
|
||||||
"title": "Project Cybersyn",
|
"title": "Project Cybersyn",
|
||||||
"author": "Mami",
|
"author": "Mami",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
|
|||||||
@@ -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
|
--locked slots is only taken into account after the train is already approved for dispatch
|
||||||
local locked_slots = p_station.locked_slots
|
local locked_slots = p_station.locked_slots
|
||||||
local total_item_slots
|
local total_item_slots = train.item_slot_capacity
|
||||||
if locked_slots > 0 then
|
if locked_slots > 0 and total_item_slots > 0 then
|
||||||
local total_cargo_wagons = #train.entity.cargo_wagons
|
local total_cargo_wagons = #train.entity.cargo_wagons
|
||||||
total_item_slots = max(train.item_slot_capacity - total_cargo_wagons*locked_slots, 1)
|
total_item_slots = max(total_item_slots - total_cargo_wagons*locked_slots, 1)
|
||||||
else
|
|
||||||
total_item_slots = train.item_slot_capacity
|
|
||||||
end
|
end
|
||||||
local total_liquid_left = train.fluid_capacity
|
local total_liquid_left = train.fluid_capacity
|
||||||
|
|
||||||
|
|||||||
BIN
dev/locked-slots.png
Normal file
BIN
dev/locked-slots.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
BIN
dev/priority.png
Normal file
BIN
dev/priority.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.7 KiB |
BIN
dev/request-threshold.png
Normal file
BIN
dev/request-threshold.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
BIN
dev/tech.png
Normal file
BIN
dev/tech.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
Reference in New Issue
Block a user