Code: Select all
data.raw["construction-robot"]["construction-robot"].repair_pack = "repair-pack", "repair-pack1", "repair-pack2", "repair-pack3", "repair-pack4", "repair-pack5"
Code: Select all
data.raw["construction-robot"]["construction-robot"].repair_pack = "repair-pack", "repair-pack1", "repair-pack2", "repair-pack3", "repair-pack4", "repair-pack5"
Does not workprg wrote:What you're doing there is syntactically correct, but results in assignment of just a single string and five statements without effect. Try curly braces around the strings to turn them into a table. (but no idea if the game actually supports this)
Loop over all entries in data.raw["construction-robot"] and add the new repair packs?mophydeen wrote:If it would work, it would not be enough.
When using mods that add there own robots. Those robots won't know about the new repair packs.
I tried adding an improved repairpack to my mod and decided to just edit the default one. Not perfect but there is currently no better way.
It does not. That's something I'm looking to fix in 0.13.prg wrote:Loop over all entries in data.raw["construction-robot"] and add the new repair packs?mophydeen wrote:If it would work, it would not be enough.
When using mods that add there own robots. Those robots won't know about the new repair packs.
I tried adding an improved repairpack to my mod and decided to just edit the default one. Not perfect but there is currently no better way.
(does the game support multiple repair packs per robot in the first place?)