openly-retro / stellaris-machine-robot-expansion

Continuation of XVCV's "Machine & Robot Expansion" mod
https://steamcommunity.com/sharedfiles/filedetails/?id=3163759042
2 stars 2 forks source link

Many base traits don't have leader_trait_somethingsomething_machine or _machine_desc #42

Closed openly-retro closed 8 months ago

openly-retro commented 9 months ago

There's plenty of text in the game for traits that have custom "machine" content. Usually instead of "leader", the language is "unit"

In making tooltips at scale, there's not a great way around this except to simply use the game default text that doesn't refer to machines. At least during gameplay when players inspect their leaders, the tooltips will be saying the "correct" things.

openly-retro commented 8 months ago

Iterate localisation files in English,

search lines .*trait.*_machine:, harvest the tooltip key. Infer _desc. drop _machine and just keep the trait base name.

Then during tooltip construction check this file for the trait base name, if there's a match, append _machine and _machine_desc to descriptors.

openly-retro commented 8 months ago

done and pushed to Steam