diff --git a/.graphics/LTN train-stop.xcf b/.graphics/LTN train-stop.xcf index 83ee88d..a2ccd27 100644 Binary files a/.graphics/LTN train-stop.xcf and b/.graphics/LTN train-stop.xcf differ diff --git a/changelog.txt b/changelog.txt index fd90ed6..dd44040 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,10 @@ --------------------------------------------------------------------------------------------------- +Version: 1.18.5 +Date: 2023-08-30 + Features: + - moved logistic ports to their own technology + - new icon for logistic ports +--------------------------------------------------------------------------------------------------- Version: 1.18.4 Date: 2023-07-28 Features: diff --git a/graphics/icons/port.png b/graphics/icons/port.png new file mode 100644 index 0000000..bd727b9 Binary files /dev/null and b/graphics/icons/port.png differ diff --git a/graphics/technology/lsn_technology.png b/graphics/technology/lsn_technology.png new file mode 100644 index 0000000..8a38ebd Binary files /dev/null and b/graphics/technology/lsn_technology.png differ diff --git a/info.json b/info.json index 40e68a0..0f6c46f 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "LogisticTrainNetwork", - "version": "1.18.4", + "version": "1.18.5", "title": "LTN - Logistic Train Network", "author": "Optera", "contact": "https://forums.factorio.com/memberlist.php?mode=viewprofile&u=21729", diff --git a/locale/de/base.cfg b/locale/de/base.cfg index 8b30c4c..eb8a8f6 100644 --- a/locale/de/base.cfg +++ b/locale/de/base.cfg @@ -25,6 +25,7 @@ ltn-port=__ENTITY__ltn-port__ [technology-name] logistic-train-network=Logistisches Bahnnetzwerk +logistic-ship-network=Logistisches Schiffsnetzwerk [technology-description] 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. diff --git a/locale/en/base.cfg b/locale/en/base.cfg index 52e661b..b68215e 100644 --- a/locale/en/base.cfg +++ b/locale/en/base.cfg @@ -25,6 +25,7 @@ ltn-port=__ENTITY__ltn-port__ [technology-name] logistic-train-network=Logistic Train Network +logistic-ship-network=Logistic Ship Network [technology-description] logistic-train-network=Logistic Train Stops request and provide items and fluids for automatically generated train schedules. diff --git a/prototypes/entities.lua b/prototypes/entities.lua index 81e54f2..bddde04 100644 --- a/prototypes/entities.lua +++ b/prototypes/entities.lua @@ -215,6 +215,9 @@ if mods["cargo-ships"] then port.next_upgrade = "ltn-port" ltn_port = flib.copy_prototype(port, "ltn-port") + ltn_port.icon = "__LogisticTrainNetwork__/graphics/icons/port.png" + ltn_port.icon_size = 64 + ltn_port.icon_mipmaps = 4 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}} diff --git a/prototypes/items.lua b/prototypes/items.lua index 85c8707..78b617c 100644 --- a/prototypes/items.lua +++ b/prototypes/items.lua @@ -35,6 +35,9 @@ data:extend({ -- support for cargo ship ports if mods["cargo-ships"] then ltn_port =flib.copy_prototype(data.raw["item"]["port"], "ltn-port") + ltn_port.icon = "__LogisticTrainNetwork__/graphics/icons/port.png" + ltn_port.icon_size = 64 + ltn_port.icon_mipmaps = 4 ltn_port.order = ltn_port.order.."-c" data:extend({ diff --git a/prototypes/technology.lua b/prototypes/technology.lua index 40969e2..1c7a35b 100644 --- a/prototypes/technology.lua +++ b/prototypes/technology.lua @@ -34,9 +34,31 @@ data:extend({ -- support for cargo ship ports if mods["cargo-ships"] then - table.insert( data.raw["technology"]["logistic-train-network"].effects, - { - type = "unlock-recipe", - recipe = "ltn-port" - } ) + data:extend({ + { + type = "technology", + name = "logistic-ship-network", + icon = "__LogisticTrainNetwork__/graphics/technology/lsn_technology.png", + icon_size = 128, + icon_mipmaps = 1, + prerequisites = {"circuit-network", "automated_water_transport" }, + effects = + { + { + type = "unlock-recipe", + recipe = "ltn-port" + } + }, + unit = + { + count = 300, + ingredients = { + {"automation-science-pack", 1}, + {"logistic-science-pack", 1} + }, + time = 30 + }, + order = "c-g-d" + } + }) end