Skip to content

Commit

Permalink
Merge pull request #17 from Glockshna/0.2.1
Browse files Browse the repository at this point in the history
Added Migration Files
  • Loading branch information
Glockshna committed Jul 11, 2016
2 parents 7efb8ed + c58f864 commit d56d1c2
Show file tree
Hide file tree
Showing 96 changed files with 41 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion GMod_0.2.0/info.json → GMod_0.2.1/info.json
@@ -1,6 +1,6 @@
{
"name": "GMod",
"version": "0.2.0",
"version": "0.2.1",
"title": "Glockshna's Bits N Bobs",
"author": "Glockshna",
"homepage": "ripme.xyz",
Expand Down
File renamed without changes.
40 changes: 40 additions & 0 deletions GMod_0.2.1/migrations/GMod_0.2.1.lua
@@ -0,0 +1,40 @@
for i, force in pairs(game.forces) do
force.reset_recipes()
force.reset_technologies()
if force.technologies["gm-very-fast-inserter"].researched == true then

force.recipes["gm-very-fast-inserter"].enabled = true
force.recipes["gm-very-fast-filter-inserter"].enabled = true
force.recipes["gm-very-fast-long-inserter"].enabled = true
force.recipes["gm-very-fast-inserter-left"].enabled = true
force.recipes["gm-very-fast-inserter-right"].enabled = true
force.recipes["gm-very-fast-inserter-left-filter"].enabled = true
force.recipes["gm-very-fast-inserter-right-filter"].enabled = true
force.recipes["gm-very-fast-extra-long-inserter"].enabled = true

if force.technologies["gm-motorized-inserter"].researched == true then

force.recipes["gm-motorized-inserter"].enabled = true
force.recipes["gm-motorized-filter-inserter"].enabled = true
force.recipes["gm-motorized-long-inserter"].enabled = true
force.recipes["gm-motorized-inserter-left"].enabled = true
force.recipes["gm-motorized-inserter-right"].enabled = true
force.recipes["gm-motorized-inserter-left-filter"].enabled = true
force.recipes["gm-motorized-inserter-right-filter"].enabled = true
force.recipes["gm-motorized-extra-long-inserter"].enabled = true

if force.technologies["gm-electric-inserter"].researched == true then

force.recipes["gm-electric-inserter"].enabled = true
force.recipes["gm-electric-filter-inserter"].enabled = true
force.recipes["gm-electric-long-inserter"].enabled = true
force.recipes["gm-electric-inserter-left"].enabled = true
force.recipes["gm-electric-inserter-right"].enabled = true
force.recipes["gm-electric-inserter-left-filter"].enabled = true
force.recipes["gm-electric-inserter-right-filter"].enabled = true
force.recipes["gm-electric-extra-long-inserter"].enabled = true
end
end
end

end
File renamed without changes.
File renamed without changes.

0 comments on commit d56d1c2

Please sign in to comment.