Any Planet Start: Fix planet discovery being disabled

This commit is contained in:
Simon Brodtmann 2025-05-03 23:00:02 +02:00
parent 596077912f
commit 90a59a7f47
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,14 @@
local Technology = require("__cf-lib__/data/Technology")
if not mods["any-planet-start"] then return end
local target_planet = settings.startup["aps-planet"].value
if target_planet == "none" or target_planet == "nauvis" then return end
-- Switch planet discovery technology to the new planet
Technology:new("planet-discovery-" .. target_planet)
:assign({
enabled = true,
hidden = false
})

View file

@ -1,4 +1,5 @@
require("aai-loaders-final")
require("any-planet-start-final")
if not data.raw.technology["legendary-quality"] then
table.removeValue(data.raw.technology["quality-assembler"].prerequisites, "legendary-quality")