modmashsplinter electronics compat
This commit is contained in:
parent
ffbf240e62
commit
58a136c0e9
4 changed files with 18 additions and 3 deletions
|
|
@ -2,7 +2,8 @@
|
||||||
Version: 0.7.1
|
Version: 0.7.1
|
||||||
Date: 2021-06-16
|
Date: 2021-06-16
|
||||||
Features:
|
Features:
|
||||||
- Ja locale updates from Sakuro
|
- ja locale updates from Sakuro
|
||||||
|
- Mod Mash Electronics recipes
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.7.0
|
Version: 0.7.0
|
||||||
Date: 2021-06-16
|
Date: 2021-06-16
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,13 @@
|
||||||
require("deadlock-stacking")
|
require("deadlock-stacking")
|
||||||
require("modules")
|
require("modules")
|
||||||
|
|
||||||
|
local util = require("__bzsilicon__.util");
|
||||||
|
|
||||||
|
-- Mod Mash Splinter Electronics
|
||||||
|
if mods.modmashsplinterelectronics then
|
||||||
|
if util.more_intermediates() then
|
||||||
|
util.multiply_recipe("advanced-circuit", 3)
|
||||||
|
util.add_ingredient("advanced-circuit", "silicon-wafer", 1)
|
||||||
|
end
|
||||||
|
util.add_ingredient("processing-unit", "silicon-wafer", 1)
|
||||||
|
end
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"? Krastorio2",
|
"? Krastorio2",
|
||||||
|
"? modmashsplinterelectronics",
|
||||||
"base >= 0.18"
|
"base >= 0.18"
|
||||||
],
|
],
|
||||||
"description": "Adds simple Silica and Silicon to the game, along with basic fiber optics."
|
"description": "Adds simple Silica and Silicon to the game, along with basic fiber optics."
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,10 @@ if not mods["Krastorio2"] then
|
||||||
util.add_effect("solar-energy", {type = "unlock-recipe", recipe="solar-cell"})
|
util.add_effect("solar-energy", {type = "unlock-recipe", recipe="solar-cell"})
|
||||||
|
|
||||||
|
|
||||||
util.multiply_recipe("advanced-circuit", 3)
|
if not mods.modmashsplinterelectronics then
|
||||||
util.replace_some_ingredient("advanced-circuit", "electronic-circuit", 3, "silicon-wafer", 1)
|
util.multiply_recipe("advanced-circuit", 3)
|
||||||
|
util.replace_some_ingredient("advanced-circuit", "electronic-circuit", 3, "silicon-wafer", 1)
|
||||||
|
end
|
||||||
util.add_prerequisite("advanced-electronics", util.silicon_processing)
|
util.add_prerequisite("advanced-electronics", util.silicon_processing)
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue