Skip to content

Commit 9dbf29b

Browse files
committed
Restore 0.5.0 migrations and explain the removal of the very old ones
1 parent cb0c72a commit 9dbf29b

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ GNU GPLv3
2222
- Redo some (well, most...) of the graphics
2323
- Many adaptions in data model
2424
- Make double-electric-furnace research more expensive
25+
- Remove very old migrations because the last update was 3 years ago and we had to change so much for Factorio 2.0, that I now consider these even older migrations unnecessary baggage
2526

2627
## 0.5.1
2728
- Fix migrations

migrations/DoubleFurnace_0.5.0.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"technology":
3+
[
4+
[ "double-smelting-tech", "double-smelting-tech-electric" ]
5+
]
6+
}
7+

migrations/DoubleFurnace_0.5.0.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-- Unlock the steel double furnace technology if double-smelting-tech is already researched
2+
for i, force in pairs(game.forces) do
3+
if force.technologies["double-smelting-tech-electric"].researched then
4+
-- setting the technology to researched should also enable the recipe
5+
force.technologies["double-smelting-tech-steel"].researched = true
6+
end
7+
end
8+

0 commit comments

Comments
 (0)