forked from brevven/titanium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtitanium-ore.lua
89 lines (83 loc) · 2.57 KB
/
titanium-ore.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
local resource_autoplace = require('resource-autoplace');
local util = require("__bztitanium__.data-util");
if mods["FactorioExtended-Plus-Core"] then
util.remove_raw("item", "titanium-ore")
end
if (not mods["pyrawores"]) then
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 = 64, icon_mipmaps = 3,
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=(settings.startup["bztitanium-mining-fluid"] and settings.startup["bztitanium-mining-fluid"].value or "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 = 3,
has_starting_area_placement = false,
regular_rq_factor_multiplier = 0.8
},
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 = 64, icon_mipmaps = 3,
icon = "__bztitanium__/graphics/icons/titanium-ore.png",
pictures = {
{filename="__bztitanium__/graphics/icons/titanium-ore.png", size=64, scale=0.25},
{filename="__bztitanium__/graphics/icons/titanium-ore-2.png", size=64, scale=0.25},
{filename="__bztitanium__/graphics/icons/titanium-ore-3.png", size=64, scale=0.25},
{filename="__bztitanium__/graphics/icons/titanium-ore-4.png", size=64, scale=0.25},
},
subgroup = "raw-resource",
order = "t-c-a",
stack_size = util.get_stack_size(50)
},
})
end