Override default numbered tech locales
Posted: Thu Apr 02, 2026 10:03 pm
I want to be able to override the built-in system of tech numbering, without having to set localized_name or localized_description on the prototype. Ideally, the default behavior looks for an exact match in the locale, then searches for a non-numbered entry. Ideally, this also applies to both the name and description independently such that you can have techs be numbered by name but have unique descriptors, or vice versa.
An example using localised_name (for this example `speed-module` is renamed to `speed-module-1` so the difference can be seen but in reality it would work the same):
An example using localised_name (for this example `speed-module` is renamed to `speed-module-1` so the difference can be seen but in reality it would work the same):
Code: Select all
data.raw.technology["speed-module-1"].localised_name = {"?", {"technology-name.speed-module-1"}, {"", "technology-name.speed-module", " 1"}}}
data.raw.technology["speed-module-2"].localised_name = {"?", {"technology-name.speed-module-2"}, {"", "technology-name.speed-module", " 2"}}}
data.raw.technology["speed-module-3"].localised_name = {"?", {"technology-name.speed-module-3"}, {"", "technology-name.speed-module", " 3"}}}