Skip to content

Commit f4e3a14

Browse files
author
Optera
committed
Version: 1.18.5
Date: 2023-08-30 Features: - moved logistic ports to their own technology - new icon for logistic ports
1 parent 9d2a025 commit f4e3a14

File tree

10 files changed

+42
-6
lines changed

10 files changed

+42
-6
lines changed

.graphics/LTN train-stop.xcf

13.9 KB
Binary file not shown.

changelog.txt

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
---------------------------------------------------------------------------------------------------
2+
Version: 1.18.5
3+
Date: 2023-08-30
4+
Features:
5+
- moved logistic ports to their own technology
6+
- new icon for logistic ports
7+
---------------------------------------------------------------------------------------------------
28
Version: 1.18.4
39
Date: 2023-07-28
410
Features:

graphics/icons/port.png

9.5 KB
Loading
13.7 KB
Loading

info.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "LogisticTrainNetwork",
3-
"version": "1.18.4",
3+
"version": "1.18.5",
44
"title": "LTN - Logistic Train Network",
55
"author": "Optera",
66
"contact": "https://forums.factorio.com/memberlist.php?mode=viewprofile&u=21729",

locale/de/base.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ ltn-port=__ENTITY__ltn-port__
2525

2626
[technology-name]
2727
logistic-train-network=Logistisches Bahnnetzwerk
28+
logistic-ship-network=Logistisches Schiffsnetzwerk
2829

2930
[technology-description]
3031
logistic-train-network=Logistik Haltestellen fordern Gegenstände und Flüssigkeiten an oder stellen sie zur Verfügung und ermöglichen automatisch generierte Fahrpläne.

locale/en/base.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ ltn-port=__ENTITY__ltn-port__
2525

2626
[technology-name]
2727
logistic-train-network=Logistic Train Network
28+
logistic-ship-network=Logistic Ship Network
2829

2930
[technology-description]
3031
logistic-train-network=Logistic Train Stops request and provide items and fluids for automatically generated train schedules.

prototypes/entities.lua

+3
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ if mods["cargo-ships"] then
215215
port.next_upgrade = "ltn-port"
216216

217217
ltn_port = flib.copy_prototype(port, "ltn-port")
218+
ltn_port.icon = "__LogisticTrainNetwork__/graphics/icons/port.png"
219+
ltn_port.icon_size = 64
220+
ltn_port.icon_mipmaps = 4
218221
ltn_port.next_upgrade = nil
219222
ltn_port.selection_box = {{-0.01, -0.6}, {1.9, 0.6}}
220223
-- ltn_port.collision_box = {{-0.01, -0.1}, {1.9, 0.4}}

prototypes/items.lua

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ data:extend({
3535
-- support for cargo ship ports
3636
if mods["cargo-ships"] then
3737
ltn_port =flib.copy_prototype(data.raw["item"]["port"], "ltn-port")
38+
ltn_port.icon = "__LogisticTrainNetwork__/graphics/icons/port.png"
39+
ltn_port.icon_size = 64
40+
ltn_port.icon_mipmaps = 4
3841
ltn_port.order = ltn_port.order.."-c"
3942

4043
data:extend({

prototypes/technology.lua

+27-5
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,31 @@ data:extend({
3434

3535
-- support for cargo ship ports
3636
if mods["cargo-ships"] then
37-
table.insert( data.raw["technology"]["logistic-train-network"].effects,
38-
{
39-
type = "unlock-recipe",
40-
recipe = "ltn-port"
41-
} )
37+
data:extend({
38+
{
39+
type = "technology",
40+
name = "logistic-ship-network",
41+
icon = "__LogisticTrainNetwork__/graphics/technology/lsn_technology.png",
42+
icon_size = 128,
43+
icon_mipmaps = 1,
44+
prerequisites = {"circuit-network", "automated_water_transport" },
45+
effects =
46+
{
47+
{
48+
type = "unlock-recipe",
49+
recipe = "ltn-port"
50+
}
51+
},
52+
unit =
53+
{
54+
count = 300,
55+
ingredients = {
56+
{"automation-science-pack", 1},
57+
{"logistic-science-pack", 1}
58+
},
59+
time = 30
60+
},
61+
order = "c-g-d"
62+
}
63+
})
4264
end

0 commit comments

Comments
 (0)