Skip to content

Commit

Permalink
electromagnetic science pack dependency
Browse files Browse the repository at this point in the history
craftable in electromagnetic plant
  • Loading branch information
LsHallo committed Oct 31, 2024
1 parent 92cd11d commit 251abb3
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Advanced-Electric-Revamped-v16/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 0.7.2
Changes:
- [space-age] Require electromagnetic science pack for Ultimate Solar / Accu
- [space-age] Solar panels and accumulators of all tiers now craftable in electromagnetic plant
---------------------------------------------------------------------------------------------------
Version: 0.7.1
Changes:
- Fix incompatibility with ElectricTrains
Expand Down
2 changes: 1 addition & 1 deletion Advanced-Electric-Revamped-v16/info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Advanced-Electric-Revamped-v16",
"version": "0.7.1",
"version": "0.7.2",
"title": "Advanced Solar High Resolution",
"contact": "",
"author": "LsHallo",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ data:extend(
name = "advanced-accumulator",
energy_required = 30,
enabled = false,
category = "electronics",
ingredients =
{
{type = "item", name = "accumulator", amount = difficulty_cost},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ data:extend(
name = "advanced-solar",
energy_required = 30,
enabled = false,
category = "electronics",
ingredients =
{
{type = "item", name = "steel-plate", amount = math.floor(5 * difficulty_factor + 0.5)},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ data:extend(
name = "elite-accumulator",
energy_required = 45,
enabled = false,
category = "electronics",
ingredients =
{
{type = "item", name = "advanced-accumulator", amount = difficulty_cost},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ data:extend(
name = "elite-solar",
energy_required = 45,
enabled = false,
category = "electronics",
ingredients =
{
{type = "item", name = "steel-plate", amount = math.floor(10 * difficulty_factor + 0.5)},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
local mul = settings.startup["advanced-electric-multiplier-ultimate-accumulator"].value

local electromagnetic_science_pack = nil
local additional_prerequisites = nil
if mods["space-age"] then
electromagnetic_science_pack = {"electromagnetic-science-pack", 1}
additional_prerequisites = "electromagnetic-science-pack"
end

data:extend(
Expand All @@ -19,7 +21,7 @@ data:extend(
recipe = "ultimate-accumulator"
}
},
prerequisites = {"elite-accumulator"},
prerequisites = {"elite-accumulator", additional_prerequisites},
unit =
{
count = 1.5 * mul,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
local mul = settings.startup["advanced-electric-multiplier-ultimate-solar"].value

local electromagnetic_science_pack = nil
local additional_prerequisites = nil
if mods["space-age"] then
electromagnetic_science_pack = {"electromagnetic-science-pack", 1}
additional_prerequisites = "electromagnetic-science-pack"
end

data:extend(
Expand All @@ -19,7 +21,7 @@ data:extend(
recipe = "ultimate-solar"
}
},
prerequisites = {"elite-solar"},
prerequisites = {"elite-solar", additional_prerequisites},
unit =
{
count = 1.5 * mul,
Expand Down

0 comments on commit 251abb3

Please sign in to comment.