mirror of
https://github.com/peter-tanner/017-science-transition-mod.git
synced 2024-12-02 12:00:19 +08:00
Initial commit
This commit is contained in:
parent
590e422700
commit
bf1e0ebb8c
7
0.17_science_0.0.1/data.lua
Normal file
7
0.17_science_0.0.1/data.lua
Normal 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
|
BIN
0.17_science_0.0.1/fff-275-03-science-packs-no-names.png
Normal file
BIN
0.17_science_0.0.1/fff-275-03-science-packs-no-names.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 76 KiB |
BIN
0.17_science_0.0.1/graphics/icons/chemical.png
Normal file
BIN
0.17_science_0.0.1/graphics/icons/chemical.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.1 KiB |
BIN
0.17_science_0.0.1/graphics/icons/military.png
Normal file
BIN
0.17_science_0.0.1/graphics/icons/military.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
BIN
0.17_science_0.0.1/graphics/icons/production.png
Normal file
BIN
0.17_science_0.0.1/graphics/icons/production.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.9 KiB |
BIN
0.17_science_0.0.1/graphics/icons/utility.png
Normal file
BIN
0.17_science_0.0.1/graphics/icons/utility.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.0 KiB |
10
0.17_science_0.0.1/info.json
Normal file
10
0.17_science_0.0.1/info.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"name": "0.17_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."
|
||||
}
|
5
0.17_science_0.0.1/locale/en/base.cfg
Normal file
5
0.17_science_0.0.1/locale/en/base.cfg
Normal 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
|
23
0.17_science_0.0.1/migrations/migrations.lua
Normal file
23
0.17_science_0.0.1/migrations/migrations.lua
Normal 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
|
200
0.17_science_0.0.1/recipe.lua
Normal file
200
0.17_science_0.0.1/recipe.lua
Normal 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 = "__0.17_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 = "__0.17_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 = "__0.17_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 = "__0.17_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"
|
||||
}
|
||||
}
|
||||
})
|
12
mod-list.json
Normal file
12
mod-list.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"mods": [
|
||||
{
|
||||
"name": "base",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"name": "0.17_science",
|
||||
"enabled": true
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user