changed names for mod portal

This commit is contained in:
Peter 2018-12-31 20:32:28 +08:00
parent bf1e0ebb8c
commit 6d796a1b01
11 changed files with 246 additions and 1 deletions

View File

@ -0,0 +1,7 @@
require("recipe")
table.insert(data.raw["technology"]["military-2"].effects, {type = "unlock-recipe",recipe = "17-military-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-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

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@ -0,0 +1,10 @@
{
"name": "017_science",
"version": "0.0.1",
"factorio_version": "0.16",
"title": "0.17 science conversion",
"author": "npc_strider(morley376)",
"contact": "",
"homepage": "http://steamcommunity.com/id/morley376",
"description": "Adds in the new science pack recipies, while keeping 0.16 recipes intact so that the player may update their base at their own pace. Also implements the 0.17 LDS recipe change, science pack names and icons. Does not revamp the tech tree."
}

View File

@ -0,0 +1,5 @@
[item-name]
science-pack-1=Automation science pack
science-pack-2=Logistics science pack
science-pack-3=Chemical science pack
high-tech-science-pack=Utility science pack

View File

@ -0,0 +1,23 @@
for i, force in pairs(game.forces) do
force.reset_recipes()
end
for i, force in pairs(game.forces) do
force.reset_technologies()
end
for i, force in pairs(game.forces) do
if force.technologies["military-2"].researched then
force.recipes["17-military-science-pack"].enabled = true
end
if force.technologies["advanced-electronics"].researched then
force.recipes["17-chemical-science-pack"].enabled = true
end
if force.technologies["advanced-material-processing-2"].researched then
force.recipes["17-production-science-pack"].enabled = true
end
if force.technologies["advanced-electronics-2"].researched then
force.recipes["low-density-structure"].enabled = true
force.recipes["17-utility-science-pack"].enabled = true
end
end

View File

@ -0,0 +1,200 @@
data:extend(
{
--The old stuff
{
type = "recipe",
name = "science-pack-1",
energy_required = 5,
ingredients =
{
{"copper-plate", 1},
{"iron-gear-wheel", 1}
},
result = "science-pack-1"
},
{
type = "recipe",
name = "science-pack-2",
energy_required = 6,
ingredients =
{
{"inserter", 1},
{"transport-belt", 1}
},
result = "science-pack-2"
},
{
type = "recipe",
name = "science-pack-3",
enabled = false,
energy_required = 12,
ingredients =
{
{"advanced-circuit", 1},
{"engine-unit", 1},
{"electric-mining-drill", 1}
},
result = "science-pack-3"
},
{
type = "recipe",
name = "military-science-pack",
enabled = false,
energy_required = 10,
ingredients =
{
{"piercing-rounds-magazine", 1},
{"grenade", 1},
{"gun-turret", 1}
},
result_count = 2,
result = "military-science-pack"
},
{
type = "recipe",
name = "production-science-pack",
enabled = false,
energy_required = 14,
ingredients =
{
{"electric-engine-unit", 1},
{"electric-furnace", 1}
},
result_count = 2,
result = "production-science-pack"
},
{
type = "recipe",
name = "high-tech-science-pack",
enabled = false,
energy_required = 14,
ingredients =
{
{"battery", 1},
{"processing-unit", 3},
{"speed-module", 1},
{"copper-cable", 30}
},
result_count = 2,
result = "high-tech-science-pack"
},
--The new stuff
-- {
-- type = "recipe",
-- name = "science-pack-1",
-- energy_required = 5,
-- ingredients =
-- {
-- {"copper-plate", 1},
-- {"iron-gear-wheel", 1}
-- },
-- result = "science-pack-1"
-- },
-- {
-- type = "recipe",
-- name = "science-pack-2",
-- energy_required = 6,
-- ingredients =
-- {
-- {"inserter", 1},
-- {"transport-belt", 1}
-- },
-- result = "science-pack-2"
-- },
{
type = "recipe",
name = "17-chemical-science-pack", --"science-pack-3"
enabled = false,
energy_required = 24, --12
ingredients =
{
{"advanced-circuit", 3}, --3
{"engine-unit", 2}, --1
{"solid-fuel", 1} --{"electric-mining-drill", 1}
},
icon = "__017_science__/graphics/icons/chemical.png",
icon_size = 64,
result = "science-pack-3"
},
{
type = "recipe",
name = "17-military-science-pack", --"military-science-pack"
enabled = false,
energy_required = 10,
ingredients =
{
{"piercing-rounds-magazine", 1},
{"grenade", 1},
{"stone-wall", 2} --{"gun-turret", 1}
},
icon = "__017_science__/graphics/icons/military.png",
icon_size = 64,
result_count = 2,
result = "military-science-pack"
},
{
type = "recipe",
name = "17-production-science-pack", --"production-science-pack"
enabled = false,
energy_required = 21, --14
ingredients =
{
{"rail", 30}, --{"electric-engine-unit", 1},
{"electric-furnace", 1},
{"productivity-module", 1} --(+)
},
icon = "__017_science__/graphics/icons/production.png",
icon_size = 64,
result_count = 3, --2
result = "production-science-pack"
},
{
type = "recipe",
name = "17-utility-science-pack", --"high-tech-science-pack"
enabled = false,
energy_required = 21, --14
ingredients =
{
--{"battery", 1},
{"processing-unit", 2}, --3
{"flying-robot-frame", 1}, --{"speed-module", 1},
{"low-density-structure", 3} --{"copper-cable", 30}
},
icon = "__017_science__/graphics/icons/utility.png",
icon_size = 64,
result_count = 3,
result = "high-tech-science-pack"
},
--LDS changes
{
type = "recipe",
name = "low-density-structure",
category = "crafting",
normal =
{
energy_required = 30,
enabled = false,
ingredients =
{
{"steel-plate", 2}, --10
{"copper-plate", 20}, --5
{"plastic-bar", 5} --5
},
result= "low-density-structure"
},
expensive =
{
energy_required = 30,
enabled = false,
ingredients =
{
{"steel-plate", 4}, --10
{"copper-plate", 20}, --10
{"plastic-bar", 10}
},
result= "low-density-structure"
}
}
})

View File

@ -5,7 +5,7 @@
"enabled": true
},
{
"name": "0.17_science",
"name": "017_science",
"enabled": true
}
]