k2, in advanced circuits
This commit is contained in:
parent
35e95e8b54
commit
f6d1ace48e
3 changed files with 12 additions and 18 deletions
|
@ -1,4 +1,9 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.0.7
|
||||||
|
Date: 2022-12-28
|
||||||
|
Changes:
|
||||||
|
- K2: PCBs used for advanced circuits instead of electronic components.
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.0.6
|
Version: 0.0.6
|
||||||
Date: 2022-12-28
|
Date: 2022-12-28
|
||||||
Fixes:
|
Fixes:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bzchlorine",
|
"name": "bzchlorine",
|
||||||
"version": "0.0.6",
|
"version": "0.0.7",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"title": "Salt & Chlorine",
|
"title": "Salt & Chlorine",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
@ -13,7 +13,8 @@
|
||||||
"? bzlead >= 1.2.0",
|
"? bzlead >= 1.2.0",
|
||||||
"? bzzirconium >= 0.6.0",
|
"? bzzirconium >= 0.6.0",
|
||||||
"? bztungsten >= 0.6.0",
|
"? bztungsten >= 0.6.0",
|
||||||
"? bzcarbon >= 0.3.0",
|
"? bzcarbon >= 0.5.5",
|
||||||
|
"? bztin >= 0.1.8",
|
||||||
"? bzgas",
|
"? bzgas",
|
||||||
"? space-exploration >= 0.5.100",
|
"? space-exploration >= 0.5.100",
|
||||||
"? aai-industry",
|
"? aai-industry",
|
||||||
|
|
|
@ -1,22 +1,10 @@
|
||||||
local util = require("data-util");
|
local util = require("data-util");
|
||||||
|
|
||||||
if mods.Krastorio2 then
|
local amt = util.get_amount("advanced-circuit")
|
||||||
local amt = util.get_amount("electronic-components")
|
util.add_ingredient("advanced-circuit", "pcb", amt)
|
||||||
util.add_ingredient("electronic-components", "pcb", amt)
|
util.remove_ingredient("advanced-circuit", "plastic-bar")
|
||||||
util.remove_ingredient("electronic-components", "plastic-bar")
|
util.set_ingredient("advanced-circuit", "copper-cable", amt)
|
||||||
|
|
||||||
amt = util.get_amount("kr-s-c-electronic-components")
|
|
||||||
util.add_ingredient("kr-s-c-electronic-components", "pcb", amt)
|
|
||||||
util.remove_ingredient("kr-s-c-electronic-components", "plastic-bar")
|
|
||||||
|
|
||||||
local amt_ac = util.get_amount("advanced-circuit")
|
|
||||||
util.set_ingredient("advanced-circuit", "copper-cable", amt_ac)
|
|
||||||
else
|
|
||||||
local amt = util.get_amount("advanced-circuit")
|
|
||||||
util.add_ingredient("advanced-circuit", "pcb", amt)
|
|
||||||
util.remove_ingredient("advanced-circuit", "plastic-bar")
|
|
||||||
util.set_ingredient("advanced-circuit", "copper-cable", amt)
|
|
||||||
end
|
|
||||||
local amt = util.get_amount("advanced-circuit")
|
local amt = util.get_amount("advanced-circuit")
|
||||||
util.set_recipe_time("advanced-circuit", amt*2) -- more steps, so speed up final step
|
util.set_recipe_time("advanced-circuit", amt*2) -- more steps, so speed up final step
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue