K2SO: Move K2 starting recipes to Nauvis technologies
This commit is contained in:
parent
82ea8f3862
commit
eb6b0d6384
1 changed files with 39 additions and 1 deletions
|
@ -1,6 +1,44 @@
|
||||||
|
local Technology = require("__cf-lib__/data/Technology")
|
||||||
|
|
||||||
if not mods["Krastorio2-spaced-out"] then return end
|
if not mods["Krastorio2-spaced-out"] then return end
|
||||||
|
|
||||||
data.raw.recipe["burner-inserter"].ingredients = {
|
data.raw.recipe["burner-inserter"].ingredients = {
|
||||||
{ type = "item", name = "wooden-gear-wheel", amount = 1 },
|
{ type = "item", name = "wooden-gear-wheel", amount = 1 },
|
||||||
{ type = "item", name = "lumber", amount = 1 }
|
{ type = "item", name = "lumber", amount = 1 }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Technology:new("kr-automation-core"):addPrerequisite("iron-processing")
|
||||||
|
|
||||||
|
local function lock_recipes(technology, recipes)
|
||||||
|
local tech = Technology:new(technology)
|
||||||
|
for _, recipe in pairs(recipes) do
|
||||||
|
tech:addRecipe(recipe)
|
||||||
|
data.raw.recipe[recipe].enabled = false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
lock_recipes("iron-processing", {
|
||||||
|
"iron-stick",
|
||||||
|
"kr-wind-turbine",
|
||||||
|
"kr-iron-beam",
|
||||||
|
"kr-inserter-parts"
|
||||||
|
})
|
||||||
|
|
||||||
|
lock_recipes("copper-processing", {
|
||||||
|
"copper-cable",
|
||||||
|
"small-electric-pole"
|
||||||
|
})
|
||||||
|
|
||||||
|
lock_recipes("planet-discovery-nauvis", {
|
||||||
|
"kr-rare-metals"
|
||||||
|
})
|
||||||
|
|
||||||
|
Technology:new("electronics"):removeRecipe("kr-electronic-circuit-wood")
|
||||||
|
|
||||||
|
if settings.startup["kr-realistic-weapons"].value then
|
||||||
|
local pistol_attack = data.raw.gun["pistol"].attack_parameters
|
||||||
|
pistol_attack.ammo_categories = pistol_attack.ammo_categories or { pistol_attack.ammo_category }
|
||||||
|
pistol_attack.ammo_category = nil
|
||||||
|
table.insert(pistol_attack.ammo_categories, "bullet")
|
||||||
|
data.raw.recipe["firearm-magazine"].enabled = false
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue