Skip to content

Commit f44eec6

Browse files
committed
0.3.10 added migration
1 parent 4a56def commit f44eec6

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

project-properties.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sourceFolder = source
21
releaseFolder = release
2+
sourceFolder = source

source/info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hardCrafting",
3-
"version": "0.3.9",
3+
"version": "0.3.10",
44
"title": "Hard crafting",
55
"author": "judos",
66
"description": "Modifies vanilla crafting and smelting to be much trickier, you will need better planning and more clever setup",
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
local function check(force, technologyName, recipeName)
2+
if force.technologies[technologyName].researched then
3+
force.recipes[recipeName].enabled = true
4+
end
5+
end
6+
7+
for i, force in pairs(game.forces) do
8+
force.reset_technologies()
9+
force.reset_recipes()
10+
11+
-- technology unlocking migration:
12+
--check(force, "logistics-2", "fast-long-inserter")
13+
14+
end

0 commit comments

Comments
 (0)