setting for flake-graphite
This commit is contained in:
parent
1b5064cce9
commit
274de48840
9 changed files with 91 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
local util = require("__bzcarbon__.data-util");
|
local util = require("__bzcarbon__.data-util");
|
||||||
|
|
||||||
if mods["Rich-Rocks-Requiem"] then
|
if util.me.use_flake_graphite() and mods["Rich-Rocks-Requiem"] then
|
||||||
if data.raw.recipe["rrr-stone-processing"] then
|
if data.raw.recipe["rrr-stone-processing"] then
|
||||||
table.insert(data.raw.recipe["rrr-stone-processing"].results,
|
table.insert(data.raw.recipe["rrr-stone-processing"].results,
|
||||||
{name = "flake-graphite", probability = 0.35, amount = 1}
|
{name = "flake-graphite", probability = 0.35, amount = 1}
|
||||||
|
|
@ -12,5 +12,4 @@ if mods["Rich-Rocks-Requiem"] then
|
||||||
{name = "flake-graphite", probability = 0.65, amount = 10}
|
{name = "flake-graphite", probability = 0.65, amount = 10}
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,48 @@ data:extend({
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- If no graphite ore, make it from coal or coke
|
||||||
|
if not util.me.use_flake_graphite() then
|
||||||
|
if data.raw.item["coke"] then
|
||||||
|
data:extend({
|
||||||
|
{
|
||||||
|
type = "recipe",
|
||||||
|
name = "graphite",
|
||||||
|
icon = "__bzcarbon__/graphics/icons/graphite.png", icon_size=128,
|
||||||
|
category = mods.bzfoundry and "founding" or "advanced-crafting",
|
||||||
|
order = "d[graphite]",
|
||||||
|
enabled = false,
|
||||||
|
energy_required = 0.5,
|
||||||
|
ingredients = {{"coke", 1}},
|
||||||
|
results = {{"graphite", 2}},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
else
|
||||||
|
data:extend({
|
||||||
|
{
|
||||||
|
type = "recipe",
|
||||||
|
name = "graphite",
|
||||||
|
icon = "__bzcarbon__/graphics/icons/graphite.png", icon_size=128,
|
||||||
|
category = mods.bzfoundry and "founding" or "advanced-crafting",
|
||||||
|
subgroup = data.raw.item.graphite.subgroup,
|
||||||
|
order = "d[graphite]",
|
||||||
|
enabled = false,
|
||||||
|
energy_required = 0.5,
|
||||||
|
ingredients = {{"coal", 1}},
|
||||||
|
results = {{"graphite", 1}, {type="item", name="stone", amount=1, probability=0.05}},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
util.add_prerequisite("graphite-processing", "foundry")
|
||||||
|
|
||||||
|
-- Increase richness of coal a bit
|
||||||
|
local noise = require('noise');
|
||||||
|
data.raw.resource["coal"].autoplace.richness_expression =
|
||||||
|
data.raw.resource["coal"].autoplace.richness_expression * noise.to_noise_expression(1.5)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if mods.Krastorio2 then
|
if mods.Krastorio2 then
|
||||||
util.add_prerequisite("graphite-processing", "kr-crusher")
|
util.add_prerequisite("graphite-processing", "kr-crusher")
|
||||||
|
|
@ -85,6 +127,8 @@ else
|
||||||
util.add_prerequisite("graphite-processing", "automation")
|
util.add_prerequisite("graphite-processing", "automation")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if mods["space-exploration"] and not mods.Krastorio2 then
|
if mods["space-exploration"] and not mods.Krastorio2 then
|
||||||
data:extend({
|
data:extend({
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,14 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.0.20
|
||||||
|
Date: 2022-01-19
|
||||||
|
Features:
|
||||||
|
- New setting to remove flake graphite
|
||||||
|
Changes:
|
||||||
|
- Minor tech tree tweaks
|
||||||
|
- Repair pack recipe tweak
|
||||||
|
- Minor 5d compatibility improvements
|
||||||
|
- Minor FE+ compatibility improvements
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.0.19
|
Version: 0.0.19
|
||||||
Date: 2022-01-18
|
Date: 2022-01-18
|
||||||
Fixes:
|
Fixes:
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ local noise = require('noise');
|
||||||
|
|
||||||
local util = require("__bzcarbon__.data-util");
|
local util = require("__bzcarbon__.data-util");
|
||||||
|
|
||||||
|
if util.me.use_flake_graphite() then
|
||||||
data:extend({
|
data:extend({
|
||||||
{
|
{
|
||||||
type = "autoplace-control",
|
type = "autoplace-control",
|
||||||
|
|
@ -83,3 +84,4 @@ data:extend({
|
||||||
stack_size = util.get_stack_size(50)
|
stack_size = util.get_stack_size(50)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
"base >= 1.1.0",
|
"base >= 1.1.0",
|
||||||
"? bztitanium",
|
"? bztitanium",
|
||||||
"? bzzirconium",
|
"? bzzirconium",
|
||||||
|
"? bzfoundry",
|
||||||
"? space-exploration",
|
"? space-exploration",
|
||||||
"? aai-industry",
|
"? aai-industry",
|
||||||
"? Krastorio2",
|
"? Krastorio2",
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,7 @@ bzcarbon-list=Make a list of modified recipes
|
||||||
bzcarbon-enable-fullerenes=Enable fullerenes & nanotubes
|
bzcarbon-enable-fullerenes=Enable fullerenes & nanotubes
|
||||||
bzcarbon-enable-carbon-black=Enable carbon black
|
bzcarbon-enable-carbon-black=Enable carbon black
|
||||||
bzcarbon-enable-rough-diamond=Enable diamond mining
|
bzcarbon-enable-rough-diamond=Enable diamond mining
|
||||||
|
bzcarbon-enable-flake-graphite=Enable flake graphite
|
||||||
bzcarbon-reuse=Reuse grinding grit
|
bzcarbon-reuse=Reuse grinding grit
|
||||||
|
|
||||||
[mod-setting-description]
|
[mod-setting-description]
|
||||||
|
|
@ -77,4 +78,8 @@ bzcarbon-list=If enabled, the text command [color=orange]BZList[/color] will dum
|
||||||
bzcarbon-enable-fullerenes=Enable the fullerenes & nanotubes intermediate products.\nFullerenes are used primarily in bio-related things. Nanotubes for structures.
|
bzcarbon-enable-fullerenes=Enable the fullerenes & nanotubes intermediate products.\nFullerenes are used primarily in bio-related things. Nanotubes for structures.
|
||||||
bzcarbon-enable-carbon-black=Enable carbon black byproduct. Primarily used to make plastics.
|
bzcarbon-enable-carbon-black=Enable carbon black byproduct. Primarily used to make plastics.
|
||||||
bzcarbon-enable-rough-diamond=Enables diamond ore patches for new games.
|
bzcarbon-enable-rough-diamond=Enables diamond ore patches for new games.
|
||||||
|
bzcarbon-enable-flake-graphite=Enables graphite ore patches. Recommended to leave this on. Turning off will remove existing ore patches.
|
||||||
bzcarbon-reuse=A chance to reuse diamond grinding grit in recipes like LDS. More complex, but saves resources.
|
bzcarbon-reuse=A chance to reuse diamond grinding grit in recipes like LDS. More complex, but saves resources.
|
||||||
|
|
||||||
|
[string-mod-setting]
|
||||||
|
bzcarbon-enable-flake-graphite-yes=yes - recommended
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,25 @@
|
||||||
if data.raw["map-gen-presets"] and data.raw["map-gen-presets"].default then
|
local util = require("data-util");
|
||||||
for name, preset in pairs(data.raw["map-gen-presets"].default) do
|
if util.me.use_flake_graphite() then
|
||||||
if type(preset) == "table" and
|
if data.raw["map-gen-presets"] and data.raw["map-gen-presets"].default then
|
||||||
|
for name, preset in pairs(data.raw["map-gen-presets"].default) do
|
||||||
|
if type(preset) == "table" and
|
||||||
preset.basic_settings and
|
preset.basic_settings and
|
||||||
preset.basic_settings.autoplace_controls and
|
preset.basic_settings.autoplace_controls and
|
||||||
preset.basic_settings.autoplace_controls["iron-ore"] then
|
preset.basic_settings.autoplace_controls["iron-ore"] then
|
||||||
preset.basic_settings.autoplace_controls["graphite"] = preset.basic_settings.autoplace_controls["iron-ore"]
|
preset.basic_settings.autoplace_controls["graphite"] = preset.basic_settings.autoplace_controls["iron-ore"]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if util.me.use_rough_diamond() then
|
||||||
|
if data.raw["map-gen-presets"] and data.raw["map-gen-presets"].default then
|
||||||
|
for name, preset in pairs(data.raw["map-gen-presets"].default) do
|
||||||
|
if type(preset) == "table" and
|
||||||
|
preset.basic_settings and
|
||||||
|
preset.basic_settings.autoplace_controls and
|
||||||
|
preset.basic_settings.autoplace_controls["iron-ore"] then
|
||||||
|
preset.basic_settings.autoplace_controls["diamond"] = preset.basic_settings.autoplace_controls["iron-ore"]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,18 @@ data:extend({
|
||||||
type = "string-setting",
|
type = "string-setting",
|
||||||
name = "bzcarbon-enable-rough-diamond",
|
name = "bzcarbon-enable-rough-diamond",
|
||||||
setting_type = "startup",
|
setting_type = "startup",
|
||||||
|
hidden = not not mods["rso-mod"],
|
||||||
default_value = mods["rso-mod"] and "yes" or "no",
|
default_value = mods["rso-mod"] and "yes" or "no",
|
||||||
allowed_values = {"no", "yes"},
|
allowed_values = {"no", "yes"},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type = "string-setting",
|
||||||
|
name = "bzcarbon-enable-flake-graphite",
|
||||||
|
setting_type = "startup",
|
||||||
|
hidden = not not mods["rso-mod"],
|
||||||
|
default_value = "yes",
|
||||||
|
allowed_values = {"no", "yes"},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type = "bool-setting",
|
type = "bool-setting",
|
||||||
name = "bzcarbon-list",
|
name = "bzcarbon-list",
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,9 @@
|
||||||
local util = require("data-util");
|
local util = require("data-util");
|
||||||
|
|
||||||
|
|
||||||
local ore = "flake-graphite"
|
local ore = "flake-graphite"
|
||||||
local ore_icon = "__bzcarbon__/graphics/icons/flake-graphite.png"
|
local ore_icon = "__bzcarbon__/graphics/icons/flake-graphite.png"
|
||||||
|
|
||||||
if mods["StrangeMatter"] then
|
if util.me.use_flake_graphite() and mods["StrangeMatter"] then
|
||||||
data:extend({
|
data:extend({
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue