While I was doing that I thought that it had a lot of duplicated localization keys, like:
Code: Select all
[item-name]
hsmd-construction-robotics-mk2=Construction robotics
[item-description]
hsmd-construction-robotics-mk2=Construction robotics, with better battries and a bit more speed.
[technology-name]
hsmd-construction-robotics-mk2=Construction robot MK2
[technology-description]
hsmd-construction-robotics-mk2=Construction robots with improved battary.
[entity-name]
hsmd-construction-robotics-mk2=Construction robotics MK2
Since I haven't been able to find any reference to "item-name" in the code of the mod, I replaced the text of the keys with something I could recognize (i.e. "tag" + "key") but I haven't been able to see any use of the texts under [item-name] tag.
Hiladdar's Robots is a pretty simple mod that just defines some entities and techs with little scripting other than calling data:extend().
All this makes me think the game looks up for this instead of the mod.
So, am I right to say that the game looks up for entity-name.hsmd-construction-robotics-mk2 since the entity name is set like this?
Code: Select all
local cmk2 = table.deepcopy(data.raw['construction-robot']['construction-robot']);
cmk2.name = "hsmd-construction-robotics-mk2";