82 lines
1.6 KiB
Lua
82 lines
1.6 KiB
Lua
--soll
|
|
|
|
local soil = table.deepcopy(data.raw.tile["sand-1"]);
|
|
soil.collision_mask = {
|
|
"layer-30"
|
|
};
|
|
soil.name = "soil";
|
|
soil.minable = {
|
|
mining_time = 0.55
|
|
};
|
|
|
|
local soil_item = table.deepcopy(data.raw.item.concrete);
|
|
soil_item.name = "soil_item";
|
|
soil_item.place_result = nil;
|
|
soil_item.place_as_tile = {
|
|
result = "soil",
|
|
condition = {
|
|
"water-tile",
|
|
"object-layer",
|
|
"layer-30"
|
|
},
|
|
condition_size = 1
|
|
};
|
|
soil_item.icons = {
|
|
{
|
|
icon = soil_item.icon,
|
|
icon_size = soil_item.icon_size,
|
|
tint = {
|
|
r = 1,
|
|
g = 0,
|
|
b = 0,
|
|
a = 0.3
|
|
}
|
|
}
|
|
};
|
|
data:extend({
|
|
soil, soil_item
|
|
});
|
|
|
|
--soil_ore
|
|
|
|
local pre_soil_ore = table.deepcopy(data.raw.resource.coal);
|
|
pre_soil_ore.name = "pre_soil_ore";
|
|
pre_soil_ore.autoplace = nil;
|
|
pre_soil_ore.created_effect = {
|
|
type = "direct",
|
|
action_delivery = {
|
|
type = "instant",
|
|
target_effects = {
|
|
{
|
|
type = "script",
|
|
effect_id = "pretill-spawned"
|
|
}
|
|
}
|
|
}
|
|
};
|
|
pre_soil_ore.collision_mask = {
|
|
"object-layer",
|
|
"water-tile",
|
|
"layer-30"
|
|
};
|
|
local pre_soil_item = table.deepcopy(data.raw.item["small-electric-pole"]);
|
|
pre_soil_item.name = "pre_soil_ore_place";
|
|
pre_soil_item.place_result = "pre_soil_ore";
|
|
pre_soil_item.icons = {
|
|
{
|
|
icon = pre_soil_item.icon,
|
|
icon_size = pre_soil_item.icon_size,
|
|
tint = {
|
|
r = 1,
|
|
g = 0,
|
|
b = 0,
|
|
a = 0.3
|
|
}
|
|
}
|
|
};
|
|
|
|
data:extend({
|
|
pre_soil_ore,
|
|
pre_soil_item,
|
|
|
|
});
|