added migration mod for release conversion + removed old

This commit is contained in:
Peter 2019-01-03 18:05:18 +08:00
parent aaabba2d54
commit 234915d737
4 changed files with 23 additions and 80 deletions

View File

@ -1,85 +1,5 @@
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",

View 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)"
}

View 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"]
]
}

View File

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