diff --git a/lignumis/changelog.txt b/lignumis/changelog.txt index 8eb8c4a..58144ff 100644 --- a/lignumis/changelog.txt +++ b/lignumis/changelog.txt @@ -9,6 +9,7 @@ Date: 09.01.2025 - Balance start on Nauvis - Fix bug for when freeplay interface is not present - Reactors and cars burn wood fuel + - Unlock Lignumis via technology instead of script --------------------------------------------------------------------------------------------------- Version: 0.0.5 Date: 07.01.2025 diff --git a/lignumis/control.lua b/lignumis/control.lua index 0fa9bbb..e44a5b7 100644 --- a/lignumis/control.lua +++ b/lignumis/control.lua @@ -14,7 +14,7 @@ end local function correct_space_locations() local force = game.forces.player - force.unlock_space_location("lignumis") + force.technologies["planet-discovery-lignumis"].researched = true if not force.technologies["planet-discovery-nauvis"].researched then force.lock_space_location("nauvis") end diff --git a/lignumis/graphics/technology/lignumis.png b/lignumis/graphics/technology/lignumis.png new file mode 100644 index 0000000..2630b60 Binary files /dev/null and b/lignumis/graphics/technology/lignumis.png differ diff --git a/lignumis/locale/en/strings.cfg b/lignumis/locale/en/strings.cfg index e181cd0..ddae244 100644 --- a/lignumis/locale/en/strings.cfg +++ b/lignumis/locale/en/strings.cfg @@ -79,6 +79,7 @@ gold-stromatolite-seed-to-peat=Used for voiding excess gold stromatolite seeds. wood-science-pack=Wood science pack burner-automation=Burner automation planet-discovery-nauvis=Planet discovery Nauvis +planet-discovery-lignumis=Planet discovery Lignumis iron-processing=Iron processing copper-processing=Copper processing lumber-mill=Lumber mill diff --git a/lignumis/prototypes/content/technology.lua b/lignumis/prototypes/content/technology.lua index a4b573b..9486317 100644 --- a/lignumis/prototypes/content/technology.lua +++ b/lignumis/prototypes/content/technology.lua @@ -1,4 +1,26 @@ data:extend({ + { + type = "technology", + name = "planet-discovery-lignumis", + icons = util.technology_icon_constant_planet("__lignumis__/graphics/technology/lignumis.png"), + icon_size = 256, + essential = true, + effects = { + { + type = "unlock-space-location", + space_location = "lignumis", + use_icon_overlay_constant = true + } + }, + prerequisites = { "automation-science-pack" }, + unit = { + count = 10, + ingredients = { + { "automation-science-pack", 1 }, + }, + time = 10 + } + }, { type = "technology", name = "planet-discovery-nauvis",