Add metrics combinator entity, GUI, and related functionality; enhance power and production stats tracking
Greatly improved train trip perfomance by culling table after sending Fixed formatting in many places
This commit is contained in:
55
data.lua
55
data.lua
@@ -0,0 +1,55 @@
|
||||
-- ENTITY
|
||||
local entity = table.deepcopy(data.raw["constant-combinator"]["constant-combinator"])
|
||||
|
||||
entity.name = "metrics-combinator"
|
||||
entity.minable = {
|
||||
mining_time = 0.1,
|
||||
result = "metrics-combinator"
|
||||
}
|
||||
entity.allow_copy_paste = true
|
||||
entity.icon = "__base__/graphics/icons/constant-combinator.png"
|
||||
entity.icon_size = 64
|
||||
--entity.operable = false
|
||||
entity.flags = { "get-by-unit-number", "placeable-neutral", "placeable-player" }
|
||||
|
||||
-- ITEM
|
||||
local item = {
|
||||
type = "item",
|
||||
name = "metrics-combinator",
|
||||
icon = "__base__/graphics/icons/constant-combinator.png",
|
||||
icon_size = 64,
|
||||
subgroup = "circuit-network",
|
||||
order = "c[combinators]-c[metrics-combinator]",
|
||||
place_result = "metrics-combinator",
|
||||
stack_size = 50
|
||||
}
|
||||
|
||||
-- RECIPE (sichtbar von Spielstart)
|
||||
local recipe = {
|
||||
type = "recipe",
|
||||
name = "metrics-combinator",
|
||||
enabled = true,
|
||||
allow_quality = true,
|
||||
|
||||
ingredients = {
|
||||
{
|
||||
type = "item",
|
||||
name = "electronic-circuit",
|
||||
amount = 1
|
||||
}
|
||||
},
|
||||
|
||||
results = {
|
||||
{
|
||||
type = "item",
|
||||
name = "metrics-combinator",
|
||||
amount = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
data:extend({
|
||||
entity,
|
||||
item,
|
||||
recipe
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user