Files
Adam Hellberg 8aca2151bb Fix Nullius overwriting localised names
Nullius modifies the names of some base items by writing to their
`localised_name` property. This modification is done before the
modified tables are copied and used by other mods (possibly depending on
load order).

As such, if mods use custom names from a `*.cfg` file, they will not be
respected unless the mod also writes to the `localised_name` property in
Lua code during the data stage.
2023-03-31 01:33:37 +02:00

14 lines
637 B
Lua

--By Mami
combinator_item = flib.copy_prototype(data.raw["item"]["arithmetic-combinator"], COMBINATOR_NAME)
combinator_item.icon = "__cybersyn__/graphics/icons/cybernetic-combinator.png"
combinator_item.icon_size = 64
combinator_item.icon_mipmaps = 4
combinator_item.subgroup = data.raw["item"]["train-stop"].subgroup
combinator_item.order = data.raw["item"]["train-stop"].order.."-b"
combinator_item.place_result = COMBINATOR_NAME
if mods["nullius"] then
combinator_item.localised_name = { "item-name.cybersyn-combinator" }
-- Enable item in Nullius and place next to the regular train stop
combinator_item.order = "nullius-eca"
end