88 lines
2.6 KiB
Lua
88 lines
2.6 KiB
Lua
local resource_autoplace = require('resource-autoplace');
|
|
|
|
local util = require("data-util");
|
|
|
|
resource_autoplace.initialize_patch_set("graphite", true)
|
|
data.raw.planet.nauvis.map_gen_settings.autoplace_controls["graphite"] = {}
|
|
data.raw.planet.nauvis.map_gen_settings.autoplace_settings.entity.settings["graphite"] = {}
|
|
if mods.tenebris then
|
|
data.raw.planet.tenebris.map_gen_settings.autoplace_controls["graphite"] = {}
|
|
data.raw.planet.tenebris.map_gen_settings.autoplace_settings.entity.settings["graphite"] = {}
|
|
end
|
|
|
|
|
|
if util.me.use_flake_graphite() then
|
|
data:extend({
|
|
{
|
|
type = "autoplace-control",
|
|
category = "resource",
|
|
name = "graphite",
|
|
richness = true,
|
|
order = "a-g"
|
|
},
|
|
-- {
|
|
-- type = "noise-layer",
|
|
-- name = "graphite"
|
|
-- },
|
|
{
|
|
type = "resource",
|
|
name = "graphite",
|
|
icon = "__bzcarbon__/graphics/icons/flake-graphite.png",
|
|
icon_size = 128,
|
|
flags = {"placeable-neutral"},
|
|
order="a-b-a",
|
|
map_color = {r=0.18, g=0.17, b=0.30},
|
|
minable =
|
|
{
|
|
hardness = 1,
|
|
mining_particle = "graphite-particle",
|
|
mining_time = 1,
|
|
fluid_amount = 1,
|
|
required_fluid = "steam",
|
|
result = "flake-graphite"
|
|
},
|
|
collision_box = {{ -0.1, -0.1}, {0.1, 0.1}},
|
|
selection_box = {{ -0.5, -0.5}, {0.5, 0.5}},
|
|
|
|
autoplace = resource_autoplace.resource_autoplace_settings{
|
|
name = "graphite",
|
|
order = "a-g",
|
|
base_density = 6,
|
|
base_spots_per_km2 = 1,
|
|
has_starting_area_placement = true,
|
|
regular_rq_factor_multiplier = 1.2,
|
|
starting_rq_factor_multiplier = 1.4,
|
|
},
|
|
|
|
stage_counts = {15000, 9500, 5500, 2900, 1300, 400, 150, 80},
|
|
stages =
|
|
{
|
|
sheet =
|
|
{
|
|
filename = "__bzcarbon__/graphics/entity/ores/hr-graphite.png",
|
|
priority = "extra-high",
|
|
size = 128,
|
|
frame_count = 8,
|
|
variation_count = 8,
|
|
scale = 0.5
|
|
}
|
|
},
|
|
},
|
|
{
|
|
type = "item",
|
|
name = "flake-graphite",
|
|
icon_size = 128,
|
|
icon = "__bzcarbon__/graphics/icons/flake-graphite.png",
|
|
pictures = {
|
|
{filename="__bzcarbon__/graphics/icons/flake-graphite.png", size=128, scale=0.25},
|
|
{filename="__bzcarbon__/graphics/icons/flake-graphite-1.png", size=128, scale=0.25},
|
|
{filename="__bzcarbon__/graphics/icons/flake-graphite-2.png", size=128, scale=0.25},
|
|
{filename="__bzcarbon__/graphics/icons/flake-graphite-3.png", size=128, scale=0.25},
|
|
{filename="__bzcarbon__/graphics/icons/flake-graphite-4.png", size=128, scale=0.25},
|
|
},
|
|
subgroup = "raw-resource",
|
|
order = "t-c-a",
|
|
stack_size = util.get_stack_size(50)
|
|
},
|
|
})
|
|
end
|