-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Jelmergu/develop
Update to 1.0
- Loading branch information
Showing
20 changed files
with
170 additions
and
22 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+7.32 KB
upgrade-machines/graphics/icons/burner-assembling-to-assembling-machine-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.84 KB
upgrade-machines/graphics/icons/filter-inserter-to-stack-filter-inserter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"name": "upgrade-machines", | ||
"version": "0.18.0", | ||
"version": "1.0.0", | ||
"title": "Upgrade Machines", | ||
"author": "Jelmergu", | ||
"contact": "", | ||
"homepage": "", | ||
"factorio_version": "0.18", | ||
"factorio_version": "1.0", | ||
"dependencies": ["base >= 0.16.22", "? bobelectronics >= 0.15.2", "? bobplates >= 0.15.12"], | ||
"description": "This mod adds recipes to upgrade all burner stage machines to their next tier machine" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
upgrade-machines/migrations/2020-01-24_upgrade-machines_0.18.1.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
for index, force in pairs(game.forces) do | ||
if force.technologies["military-3"].researched == true then | ||
force.recipes["pistol-to-combat-shotgun"].enabled = true | ||
force.recipes["pistol-to-combat-shotgun"].reload() | ||
end | ||
if force.technologies["stack-inserter"].researched == true then | ||
force.recipes["filter-inserter-to-stack-filter-inserter"].enabled = true | ||
force.recipes["filter-inserter-to-stack-filter-inserter"].reload() | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"recipe" : [ | ||
["pistol-to-combat-shotgun", "shotgun-to-combat-shotgun"] | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
upgrade-machines/migrations/2020-10-31_upgrade_machines_1.0.0.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
for _, force in pairs(game.forces) do | ||
if force.technologies["bob-steam-turbine-1"].researched == true then | ||
force.recipes["steam-engine-to-steam-turbine"].enabled = false | ||
force.recipes["steam-engine-to-steam-turbine"].reload() | ||
end | ||
if force.technologies["bob-heat-exchanger-1"].researched == true then | ||
force.recipes["boiler-to-heat-exchanger"].enabled = false | ||
force.recipes["boiler-to-heat-exchanger"].reload() | ||
end | ||
if force.technologies["automation"].researched == true then | ||
force.recipes["burner-assembling-to-assembling-machine-1"].enabled = true | ||
force.recipes["burner-assembling-to-assembling-machine-1"].reload() | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Jelmergu:addConditionalRecipe({ "burner-assembling-machine", "assembling-machine-1" }, | ||
{ | ||
name = "burner-assembling-to-assembling-machine-1", | ||
order = "b[burner-to-electric-drill]", | ||
expensive = false, | ||
icon_size = 64, | ||
ingredients = { | ||
{ "burner-assembling-machine", 1 }, | ||
{ "electronic-circuit", 3 }, | ||
}, | ||
main_product = "assembling-machine-1", | ||
energy_required = 0.5, | ||
} | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Jelmergu:addConditionalTechnology("basic-automation", "burner-assembling-to-assembling-machine-1", "automation") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Jelmergu:removeUnlockFromTechnology("nuclear-power", "boiler-to-heat-exchanger") | ||
Jelmergu:removeUnlockFromTechnology("nuclear-power", "steam-engine-to-steam-turbine") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters