forked from cacklingfiend/bzgold2
merge bob CPUs to ours
This commit is contained in:
parent
afc6357657
commit
8bfeec74d9
4 changed files with 30 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ Version: 0.0.15
|
|||
Date: 2023-12-29
|
||||
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.)
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.14
|
||||
Date: 2023-04-16
|
||||
|
|
|
|||
22
compatibility/bobelectronics.lua
Normal file
22
compatibility/bobelectronics.lua
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
local util = require("data-util")
|
||||
|
||||
if mods.bobelectronics or mods.MDbobelectronics then
|
||||
util.replace_ingredient("advanced-processing-unit", "processing-electronics", "cpu", 4)
|
||||
util.remove_recipe_effect("advanced-electronics-3", "processing-electronics")
|
||||
util.remove_raw("recipe", "processing-electronics")
|
||||
util.remove_raw("item", "processing-electronics")
|
||||
|
||||
for j, module in pairs(data.raw.module) do
|
||||
if module.effect then
|
||||
for effect_name, effect in pairs(module.effect) do
|
||||
if effect_name == "productivity" and effect.bonus > 0 and module.limitation and #module.limitation > 0 then
|
||||
for k = #module.limitation, 1, -1 do
|
||||
if module.limitation[k] == "processing-electronics" then
|
||||
table.remove(module.limitation, k)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
require("prototypes/tech-updates")
|
||||
require("prototypes/processing-unit-updates")
|
||||
require("compatibility/bobelectronics")
|
||||
require("prototypes/recipe-updates")
|
||||
require("prototypes/recipe-updates-se")
|
||||
require("map-gen-preset-updates")
|
||||
|
|
|
|||
6
migrations/bzgold.0.0.15.json
Normal file
6
migrations/bzgold.0.0.15.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"item":
|
||||
[
|
||||
["processing-electronics", "cpu"]
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue