diff --git a/017_science/recipe.lua b/017_science/recipe.lua index b9837c6..09da586 100644 --- a/017_science/recipe.lua +++ b/017_science/recipe.lua @@ -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", diff --git a/017_science_migration/info.json b/017_science_migration/info.json new file mode 100644 index 0000000..cdcf16a --- /dev/null +++ b/017_science_migration/info.json @@ -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)" +} \ No newline at end of file diff --git a/017_science_migration/migrations/migrations.json b/017_science_migration/migrations/migrations.json new file mode 100644 index 0000000..60fd79c --- /dev/null +++ b/017_science_migration/migrations/migrations.json @@ -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"] + ] +} \ No newline at end of file diff --git a/mod-list.json b/mod-list.json index bc38b3a..e8c7c66 100644 --- a/mod-list.json +++ b/mod-list.json @@ -7,6 +7,10 @@ { "name": "017_science", "enabled": true + }, + { + "name": "017_science_migration", + "enabled": true } ] }