mirror of
https://github.com/0ptera/Logistic-Train-Network.git
synced 2025-09-06 20:34:47 +00:00
Version: 1.18.4
Date: 2023-07-28 Features: - Upgrade planner functionality for train-stop and port #323
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.18.4
|
||||
Date: 2023-07-28
|
||||
Features:
|
||||
- Upgrade planner functionality for train-stop and port #323
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.18.3
|
||||
Date: 2023-04-01
|
||||
Bugfixes:
|
||||
|
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "LogisticTrainNetwork",
|
||||
"version": "1.18.3",
|
||||
"version": "1.18.4",
|
||||
"title": "LTN - Logistic Train Network",
|
||||
"author": "Optera",
|
||||
"contact": "https://forums.factorio.com/memberlist.php?mode=viewprofile&u=21729",
|
||||
"homepage": "https://forums.factorio.com/viewforum.php?f=214",
|
||||
"description": "Adds new train stops forming a highly configurable, fully automated logistic network.",
|
||||
"factorio_version": "1.1",
|
||||
"dependencies": ["base >= 1.1.46", "flib >= 0.6.0", "(?)cargo-ships"]
|
||||
"dependencies": ["base >= 1.1.87", "flib >= 0.6.0", "(?)cargo-ships"]
|
||||
}
|
||||
|
@@ -4,7 +4,11 @@
|
||||
* See LICENSE.md in the project directory for license information.
|
||||
--]]
|
||||
|
||||
local ltn_stop = flib.copy_prototype(data.raw["train-stop"]["train-stop"], "logistic-train-stop")
|
||||
local train_stop = data.raw["train-stop"]["train-stop"]
|
||||
train_stop.fast_replaceable_group = train_stop.fast_replaceable_group or "train-stop"
|
||||
train_stop.next_upgrade = "logistic-train-stop"
|
||||
|
||||
local ltn_stop = flib.copy_prototype(train_stop, "logistic-train-stop")
|
||||
ltn_stop.icon = "__LogisticTrainNetwork__/graphics/icons/train-stop.png"
|
||||
ltn_stop.icon_size = 64
|
||||
ltn_stop.icon_mipmaps = 4
|
||||
@@ -206,9 +210,15 @@ data:extend({
|
||||
|
||||
-- support for cargo ship ports
|
||||
if mods["cargo-ships"] then
|
||||
ltn_port = flib.copy_prototype(data.raw["train-stop"]["port"], "ltn-port")
|
||||
local port = data.raw["train-stop"]["port"]
|
||||
port.fast_replaceable_group = port.fast_replaceable_group or "port"
|
||||
port.next_upgrade = "ltn-port"
|
||||
|
||||
ltn_port = flib.copy_prototype(port, "ltn-port")
|
||||
ltn_port.next_upgrade = nil
|
||||
ltn_port.selection_box = {{-0.01, -0.6}, {1.9, 0.6}}
|
||||
-- ltn_port.collision_box = {{-0.01, -0.1}, {1.9, 0.4}}
|
||||
|
||||
data:extend({
|
||||
ltn_port
|
||||
})
|
||||
|
Reference in New Issue
Block a user