bztitanium2/titanium-ore.lua
2020-09-13 05:22:28 -07:00

79 lines
1.7 KiB
Lua

local resource_autoplace = require('resource-autoplace');
data:extend(
{
{
type = "autoplace-control",
category = "resource",
name = "titanium-ore",
richness = true,
order = "b-e"
},
{
type = "noise-layer",
name = "titanium-ore"
},
{
type = "resource",
icon_size = 32,
name = "titanium-ore",
icon = "__bztitanium__/graphics/icons/titanium-ore.png",
flags = {"placeable-neutral"},
order="a-b-a",
map_color = {r=0.65, g=0.80, b=0.80},
minable =
{
hardness = 1,
mining_particle = "titanium-ore-particle",
mining_time = 2,
fluid_amount=3,
required_fluid= "lubricant",
result = "titanium-ore"
},
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 = "titanium-ore",
order = "b-z",
base_density = 6,
has_starting_area_placement = false,
random_spot_size_minimum = 1,
random_spot_size_maximum = 3,
regular_rq_factor_multiplier = 1
},
stage_counts = {15000, 9500, 5500, 2900, 1300, 400, 150, 80},
stages =
{
sheet =
{
filename = "__bztitanium__/graphics/entity/ores/titanium-ore.png",
priority = "extra-high",
size = 64,
frame_count = 8,
variation_count = 8,
hr_version =
{
filename = "__bztitanium__/graphics/entity/ores/hr-titanium-ore.png",
priority = "extra-high",
size = 128,
frame_count = 8,
variation_count = 8,
scale = 0.5
}
}
},
},
{
type = "item",
name = "titanium-ore",
icon_size = 32,
icon = "__bztitanium__/graphics/icons/titanium-ore.png",
subgroup = "raw-resource",
order = "t-c-a",
stack_size = (mods["Krastorio2"] and 200 or 50)
},
}
)