Add setting "Enable progressive technologies"
This commit is contained in:
parent
c67aaeb1b7
commit
f9fc1d77a8
4 changed files with 22 additions and 3 deletions
|
@ -25,6 +25,10 @@ Lignumis = {
|
|||
}
|
||||
}
|
||||
|
||||
if settings.startup["lignumis-technology-progression"].value then
|
||||
Lignumis.science_pack_whitelist = {}
|
||||
end
|
||||
|
||||
require("__cf-lib__/util")
|
||||
|
||||
require("prototypes/content/data")
|
||||
|
|
|
@ -164,11 +164,13 @@ quality-catalyst=Quality catalyst
|
|||
lignumis-belt-progression=Enable progressive belt recipes
|
||||
lignumis-inserter-progression=Enable progressive inserter recipes
|
||||
lignumis-ammo-progression=Enable progressive ammo recipes
|
||||
lignumis-technology-progression=Enable progressive technologies
|
||||
|
||||
[mod-setting-description]
|
||||
lignumis-belt-progression=Yellow belts will require wood belts to craft.
|
||||
lignumis-inserter-progression=Yellow electric inserter will require burner inserter to craft.
|
||||
lignumis-ammo-progression=Firearm magazines will require wooden darts magazines to craft.
|
||||
lignumis-technology-progression=Adds wood and steam science packs to most late game technologies. Disabling this removes the relevance of Lignumis' science packs in the late game.
|
||||
|
||||
[entity-status]
|
||||
no-quality-catalyst=No quality catalyst
|
||||
|
|
|
@ -274,11 +274,17 @@ if not mods["planet-picker"] then
|
|||
|
||||
local production_science_pack_technology = Technology:new("production-science-pack")
|
||||
production_science_pack_technology:replacePrerequisite("advanced-material-processing-2", "space-platform-thruster")
|
||||
production_science_pack_technology:addIngredients({ "wood-science-pack", "steam-science-pack", "space-science-pack" })
|
||||
production_science_pack_technology:addIngredients({ "space-science-pack" })
|
||||
if not settings.startup["lignumis-technology-progression"].value then
|
||||
production_science_pack_technology:removeIngredients({ "wood-science-pack", "steam-science-pack" })
|
||||
end
|
||||
|
||||
local utility_science_pack_technology = Technology:new("utility-science-pack")
|
||||
utility_science_pack_technology:setPrerequisites({ "space-platform-thruster" })
|
||||
utility_science_pack_technology:addIngredients({ "wood-science-pack", "steam-science-pack", "space-science-pack" })
|
||||
utility_science_pack_technology:addIngredients({ "space-science-pack" })
|
||||
if not settings.startup["lignumis-technology-progression"].value then
|
||||
utility_science_pack_technology:removeIngredients({ "wood-science-pack", "steam-science-pack" })
|
||||
end
|
||||
end
|
||||
|
||||
if not mods["planet-muluna"] then -- Muluna does the same
|
||||
|
|
|
@ -19,6 +19,13 @@ data:extend({
|
|||
setting_type = "startup",
|
||||
default_value = true,
|
||||
order = "c"
|
||||
},
|
||||
{
|
||||
type = "bool-setting",
|
||||
name = "lignumis-technology-progression",
|
||||
setting_type = "startup",
|
||||
default_value = true,
|
||||
order = "d"
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -39,4 +46,4 @@ if mods["planet-picker"] then
|
|||
data.raw["bool-setting"]["lignumis-inserter-progression"].hidden = true
|
||||
data.raw["bool-setting"]["lignumis-ammo-progression"].forced_value = false
|
||||
data.raw["bool-setting"]["lignumis-ammo-progression"].hidden = true
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue