forked from cacklingfiend/lignumis
Add compatibility for "Any planet start" (Vulcanus)
This commit is contained in:
parent
d15f877fe1
commit
c5d94ec0b9
13 changed files with 89 additions and 40 deletions
33
lignumis/prototypes/compatibility/any-planet-start.lua
Normal file
33
lignumis/prototypes/compatibility/any-planet-start.lua
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
local Technology = require("__cf-lib__/data/Technology")
|
||||
|
||||
if not mods["any-planet-start"] then return end
|
||||
|
||||
if settings.startup["aps-planet"].value == "vulcanus" then
|
||||
Technology:new("planet-discovery-vulcanus")
|
||||
:assign({
|
||||
enabled = true,
|
||||
hidden = false,
|
||||
unit = {
|
||||
count = 100,
|
||||
ingredients = {
|
||||
{ "wood-science-pack", 1 },
|
||||
{ "steam-science-pack", 1 }
|
||||
},
|
||||
time = 30
|
||||
}
|
||||
})
|
||||
:addPrerequisite("provisional-rocketry")
|
||||
Technology:new("copper-processing"):replacePrerequisite("planet-discovery-nauvis", "planet-discovery-vulcanus")
|
||||
Technology:new("iron-processing"):replacePrerequisite("planet-discovery-nauvis", "planet-discovery-vulcanus")
|
||||
Technology:new("automation"):addPrerequisite("iron-processing")
|
||||
Technology:new("steel-processing"):addPrerequisite("iron-processing")
|
||||
Technology:new("tungsten-carbide"):addPrerequisite("planet-discovery-vulcanus")
|
||||
|
||||
Technology:new("iron-processing")
|
||||
:addPrerequisite("planet-discovery-vulcanus")
|
||||
.prototype.research_trigger.entity = "big-volcanic-rock"
|
||||
|
||||
Technology:new("copper-processing")
|
||||
:addPrerequisite("planet-discovery-vulcanus")
|
||||
.prototype.research_trigger.entity = "big-volcanic-rock"
|
||||
end
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
require("aai-loaders-final")
|
||||
require("any-planet-start")
|
||||
|
||||
if not data.raw.technology["legendary-quality"] then
|
||||
table.removeValue(data.raw.technology["quality-assembler"].prerequisites, "legendary-quality")
|
||||
|
|
|
|||
|
|
@ -3,6 +3,11 @@ local effects = require("__core__/lualib/surface-render-parameter-effects")
|
|||
local procession_graphic_catalogue_types = require("__base__/prototypes/planet/procession-graphic-catalogue-types")
|
||||
local asteroid_util = require("__space-age__/prototypes/planet/asteroid-spawn-definitions")
|
||||
|
||||
local target_planet = settings.startup["lignumis-second-planet"].value or "nauvis"
|
||||
if mods["any-planet-start"] then
|
||||
target_planet = settings.startup["aps-planet"].value ~= "none" and settings.startup["aps-planet"].value or target_planet
|
||||
end
|
||||
|
||||
local lignumis_chunks = 0.025
|
||||
local lignumis_ratio = {1, 1, 1 , 0}
|
||||
local nauvis_lignumis = {
|
||||
|
|
@ -23,7 +28,7 @@ PlanetsLib:extend({
|
|||
orbit = {
|
||||
parent = {
|
||||
type = "planet",
|
||||
name = "nauvis"
|
||||
name = target_planet
|
||||
},
|
||||
distance = 2,
|
||||
orientation = 0.16,
|
||||
|
|
@ -116,7 +121,7 @@ data:extend({
|
|||
type = "space-connection",
|
||||
name = "nauvis-lignumis",
|
||||
subgroup = "planet-connections",
|
||||
from = "nauvis",
|
||||
from = target_planet,
|
||||
to = "lignumis",
|
||||
order = "0",
|
||||
length = 2000,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue