k2 wafer deadlock fix
This commit is contained in:
parent
54e165f8fa
commit
1d3e9fffaf
5 changed files with 14 additions and 2 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.6.4
|
||||||
|
Date: 2021-03-15
|
||||||
|
Fixes:
|
||||||
|
- Fix tech deadlock in K2 with intermediates on (type SiliconRecipes)
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.6.3
|
Version: 0.6.3
|
||||||
Date: 2021-03-14
|
Date: 2021-03-14
|
||||||
Features:
|
Features:
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,9 @@ script.on_event( defines.events.on_console_chat, function(event)
|
||||||
if game.players[event.player_index].force.recipes["solar-cell"] then
|
if game.players[event.player_index].force.recipes["solar-cell"] then
|
||||||
game.players[event.player_index].force.recipes["solar-cell"].enabled=true
|
game.players[event.player_index].force.recipes["solar-cell"].enabled=true
|
||||||
end
|
end
|
||||||
|
if game.players[event.player_index].force.recipes["hydrogen-chloride"] then
|
||||||
|
game.players[event.player_index].force.recipes["hydrogen-chloride"].enabled=true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bzsilicon",
|
"name": "bzsilicon",
|
||||||
"version": "0.6.3",
|
"version": "0.6.4",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"title": "Silica & Silicon",
|
"title": "Silica & Silicon",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
|
|
@ -139,4 +139,6 @@ data:extend({
|
||||||
result_count = 2,
|
result_count = 2,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
util.add_effect("kr-fluids-chemistry", {type="unlock-recipe", recipe="hydrogen-chloride"})
|
||||||
end
|
end
|
||||||
|
|
|
||||||
2
util.lua
2
util.lua
|
|
@ -34,7 +34,9 @@ end
|
||||||
-- Add a prerequisite to a given technology
|
-- Add a prerequisite to a given technology
|
||||||
function util.add_prerequisite(technology_name, prerequisite)
|
function util.add_prerequisite(technology_name, prerequisite)
|
||||||
technology = data.raw.technology[technology_name]
|
technology = data.raw.technology[technology_name]
|
||||||
|
if technology then
|
||||||
table.insert(technology.prerequisites, prerequisite)
|
table.insert(technology.prerequisites, prerequisite)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Add a given quantity of ingredient to a given recipe
|
-- Add a given quantity of ingredient to a given recipe
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue