Unlock Lignumis via technology instead of script
This commit is contained in:
parent
dd45cac7db
commit
02a5609c22
5 changed files with 25 additions and 1 deletions
|
@ -9,6 +9,7 @@ Date: 09.01.2025
|
||||||
- Balance start on Nauvis
|
- Balance start on Nauvis
|
||||||
- Fix bug for when freeplay interface is not present
|
- Fix bug for when freeplay interface is not present
|
||||||
- Reactors and cars burn wood fuel
|
- Reactors and cars burn wood fuel
|
||||||
|
- Unlock Lignumis via technology instead of script
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.0.5
|
Version: 0.0.5
|
||||||
Date: 07.01.2025
|
Date: 07.01.2025
|
||||||
|
|
|
@ -14,7 +14,7 @@ end
|
||||||
|
|
||||||
local function correct_space_locations()
|
local function correct_space_locations()
|
||||||
local force = game.forces.player
|
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
|
if not force.technologies["planet-discovery-nauvis"].researched then
|
||||||
force.lock_space_location("nauvis")
|
force.lock_space_location("nauvis")
|
||||||
end
|
end
|
||||||
|
|
BIN
lignumis/graphics/technology/lignumis.png
Normal file
BIN
lignumis/graphics/technology/lignumis.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 127 KiB |
|
@ -79,6 +79,7 @@ gold-stromatolite-seed-to-peat=Used for voiding excess gold stromatolite seeds.
|
||||||
wood-science-pack=Wood science pack
|
wood-science-pack=Wood science pack
|
||||||
burner-automation=Burner automation
|
burner-automation=Burner automation
|
||||||
planet-discovery-nauvis=Planet discovery Nauvis
|
planet-discovery-nauvis=Planet discovery Nauvis
|
||||||
|
planet-discovery-lignumis=Planet discovery Lignumis
|
||||||
iron-processing=Iron processing
|
iron-processing=Iron processing
|
||||||
copper-processing=Copper processing
|
copper-processing=Copper processing
|
||||||
lumber-mill=Lumber mill
|
lumber-mill=Lumber mill
|
||||||
|
|
|
@ -1,4 +1,26 @@
|
||||||
data:extend({
|
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",
|
type = "technology",
|
||||||
name = "planet-discovery-nauvis",
|
name = "planet-discovery-nauvis",
|
||||||
|
|
Loading…
Add table
Reference in a new issue