From 0a946a2c363c8b0e9a2e81c67346efab097c02fa Mon Sep 17 00:00:00 2001 From: Brevven Date: Fri, 29 Dec 2023 17:34:46 -0800 Subject: [PATCH] SE+K2+Bobs recipe fixes --- changelog.txt | 3 +++ prototypes/electronic-circuit-final.lua | 4 ++-- prototypes/mainboard.lua | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 7ae1aee..e4a8a22 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,9 @@ Date: 2023-12-29 Fixes: - Silver brazing alloy can now be handcrafted even when foundry is available. This addresses some awkward progressions. + - SE + K2 + Bob's: Fix some electronics recipes including silver alternates and circuit boards. + Unfortunately, this means "mainboard" items will end up deleted from savegames using all 3 of + those mods, as there's no good way to migrate them. Changes: - SE: Meteor/umbrella defense tech requires rocket science packs - Bob's: Merge CPU/CPUs items into one. (Might need further balancing or progression changes.) diff --git a/prototypes/electronic-circuit-final.lua b/prototypes/electronic-circuit-final.lua index 49f2005..42b2c66 100644 --- a/prototypes/electronic-circuit-final.lua +++ b/prototypes/electronic-circuit-final.lua @@ -3,8 +3,8 @@ local util = require("data-util"); if util.me.silver() then - if mods.bobelectronics then - -- alternate electronic circuit recipe that uses silver + if mods.bobelectronics or mods.MDbobelectronics then + -- alternate electronic component recipe that uses silver local ec = futil.table.deepcopy(data.raw.recipe["basic-electronic-components"]) ec.name = "basic-electronic-components-silver" data:extend({ec}) diff --git a/prototypes/mainboard.lua b/prototypes/mainboard.lua index f17b249..f4e8540 100644 --- a/prototypes/mainboard.lua +++ b/prototypes/mainboard.lua @@ -1,7 +1,7 @@ local util = require("data-util"); -if not mods.bobelectronics then +if not (mods.bobelectronics or mods.MDbobelectronics) then data:extend({ {