LDS separate recipe & remove from silo tech

This commit is contained in:
Peter 2019-01-03 23:37:46 +08:00
parent f6394a46f6
commit 8ac8cfa2d6
9 changed files with 35 additions and 7 deletions

View File

@ -10,6 +10,7 @@ for _, mod in pairs(data.raw.module) do
table.insert(limitation, "17-chemical-science-pack") table.insert(limitation, "17-chemical-science-pack")
table.insert(limitation, "17-production-science-pack") table.insert(limitation, "17-production-science-pack")
table.insert(limitation, "17-utility-science-pack") table.insert(limitation, "17-utility-science-pack")
table.insert(limitation, "17-low-density-structure")
end end
end end
end end

View File

@ -4,4 +4,13 @@ table.insert(data.raw["technology"]["military-2"].effects, {type = "unlock-recip
table.insert(data.raw["technology"]["advanced-electronics"].effects, {type = "unlock-recipe",recipe = "17-chemical-science-pack"}) table.insert(data.raw["technology"]["advanced-electronics"].effects, {type = "unlock-recipe",recipe = "17-chemical-science-pack"})
table.insert(data.raw["technology"]["advanced-material-processing-2"].effects, {type = "unlock-recipe",recipe = "17-production-science-pack"}) table.insert(data.raw["technology"]["advanced-material-processing-2"].effects, {type = "unlock-recipe",recipe = "17-production-science-pack"})
table.insert(data.raw["technology"]["advanced-electronics-2"].effects, {type = "unlock-recipe",recipe = "17-utility-science-pack"}) table.insert(data.raw["technology"]["advanced-electronics-2"].effects, {type = "unlock-recipe",recipe = "17-utility-science-pack"})
table.insert(data.raw["technology"]["advanced-electronics-2"].effects, {type = "unlock-recipe",recipe = "low-density-structure"}) --LDS unlock for pre-rocket bases
table.insert(data.raw["technology"]["advanced-electronics-2"].effects, {type = "unlock-recipe",recipe = "low-density-structure"})
table.insert(data.raw["technology"]["advanced-electronics-2"].effects, {type = "unlock-recipe",recipe = "17-low-density-structure"}) --LDS unlock for pre-rocket bases
local effects = data.raw["technology"]["rocket-silo"].effects --remove the duplicate LDS effect in rocket-silo research
for _=1, #effects do
if effects[_].type == "unlock-recipe" and effects[_].recipe == "low-density-structure" then
effects[_] = nil
end
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -1,6 +1,6 @@
{ {
"name": "017_science", "name": "017_science",
"version": "0.0.3", "version": "0.0.4",
"factorio_version": "0.16", "factorio_version": "0.16",
"title": "0.17 science conversion", "title": "0.17 science conversion",
"author": "npc_strider(morley376)", "author": "npc_strider(morley376)",

View File

@ -0,0 +1,14 @@
for i, force in pairs(game.forces) do
if force.technologies["advanced-electronics-2"].researched then
force.recipes["low-density-structure"].enabled = true
force.recipes["17-low-density-structure"].enabled = true
end
end
for i, force in pairs(game.forces) do
force.reset_recipes()
end
for i, force in pairs(game.forces) do
force.reset_technologies()
end

View File

@ -18,6 +18,7 @@ for i, force in pairs(game.forces) do
end end
if force.technologies["advanced-electronics-2"].researched then if force.technologies["advanced-electronics-2"].researched then
force.recipes["low-density-structure"].enabled = true force.recipes["low-density-structure"].enabled = true
force.recipes["17-low-density-structure"].enabled = true
force.recipes["17-utility-science-pack"].enabled = true force.recipes["17-utility-science-pack"].enabled = true
end end
end end

View File

@ -91,11 +91,11 @@ data:extend(
--LDS changes --LDS changes
{ {
type = "recipe", type = "recipe",
name = "low-density-structure", name = "17-low-density-structure",
category = "crafting", category = "crafting",
normal = normal =
{ {
energy_required = 30, energy_required = 20, --30
enabled = false, enabled = false,
ingredients = ingredients =
{ {
@ -107,7 +107,7 @@ data:extend(
}, },
expensive = expensive =
{ {
energy_required = 30, energy_required = 20, --30
enabled = false, enabled = false,
ingredients = ingredients =
{ {
@ -116,6 +116,8 @@ data:extend(
{"plastic-bar", 10} {"plastic-bar", 10}
}, },
result= "low-density-structure" result= "low-density-structure"
} },
icon = "__017_science__/graphics/icons/LDS.png",
icon_size = 32
} }
}) })

View File

@ -5,5 +5,6 @@
["17-chemical-science-pack", "chemical-science-pack"], ["17-chemical-science-pack", "chemical-science-pack"],
["17-production-science-pack", "production-science-pack"], ["17-production-science-pack", "production-science-pack"],
["17-utility-science-pack", "utility-science-pack"] ["17-utility-science-pack", "utility-science-pack"]
["17-low-density-structure", "low-density-structure"]
] ]
} }

View File

@ -10,7 +10,7 @@
}, },
{ {
"name": "017_science_migration", "name": "017_science_migration",
"enabled": true "enabled": false
} }
] ]
} }