mirror of
https://github.com/peter-tanner/017-science-transition-mod.git
synced 2024-11-30 19:10:20 +08:00
added migration mod for release conversion + removed old
This commit is contained in:
parent
aaabba2d54
commit
234915d737
|
@ -1,85 +1,5 @@
|
||||||
data:extend(
|
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",
|
-- type = "recipe",
|
||||||
-- name = "science-pack-1",
|
-- name = "science-pack-1",
|
||||||
|
|
10
017_science_migration/info.json
Normal file
10
017_science_migration/info.json
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"name": "017_science_migration",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"factorio_version": "0.16",
|
||||||
|
"title": "0.17 science (migration)",
|
||||||
|
"author": "npc_strider(morley376)",
|
||||||
|
"contact": "",
|
||||||
|
"homepage": "http://steamcommunity.com/id/morley376",
|
||||||
|
"description": "migrate the mod's recipes to the vanilla recipe internal name (so that the mod can be uninstalled)"
|
||||||
|
}
|
9
017_science_migration/migrations/migrations.json
Normal file
9
017_science_migration/migrations/migrations.json
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"recipe":
|
||||||
|
[
|
||||||
|
["17-military-science-pack", "military-science-pack"],
|
||||||
|
["17-chemical-science-pack", "chemical-science-pack"],
|
||||||
|
["17-production-science-pack", "production-science-pack"],
|
||||||
|
["17-utility-science-pack", "utility-science-pack"]
|
||||||
|
]
|
||||||
|
}
|
|
@ -7,6 +7,10 @@
|
||||||
{
|
{
|
||||||
"name": "017_science",
|
"name": "017_science",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "017_science_migration",
|
||||||
|
"enabled": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user