Page 1 of 1

[request] Modded repair packs usable by construction robots

Posted: Sun Feb 28, 2016 8:12 pm
by DevilXD
I just want to request a little feature - change "construction-robot" entity definition from:

Code: Select all

repair_pack = "repair-pack",
... to:

Code: Select all

repair_pack = {"repair-pack"},
... so modders can add their own custom repair pack and make it usable by construction robots:

Code: Select all

data.raw["construction-robot"]["construction-robot"].repair_pack = { "repair-pack", "modded-repair-pack", "etc." }
This would of course mean couple more changes in the code to handle a table instead of just one string, but it should be simple, quick and doable.

Re: [request] Modded repair packs usable by construction robots

Posted: Sun Feb 28, 2016 11:36 pm
by mophydeen

Code: Select all

 {
    type = "repair-tool",
    name = "repair-pack",
    icon = "__base__/graphics/icons/repair-pack.png",
    flags = {"goes-to-quickbar"},
    subgroup = "tool",
    order = "b[repair]-a[repair-pack]",
    speed = 1,
    durability = 100,
    stack_size = 50
  },
if they would allow all robots to use all repair tools and not only the repair-pack ...

Re: [request] Modded repair packs usable by construction robots

Posted: Mon Feb 29, 2016 3:54 pm
by DevilXD
mophydeen wrote:

Code: Select all

type = "repair-tool",
if they would allow all robots to use all repair tools and not only the repair-pack ...
Yeah, that would be neat too...

Re: [request] Modded repair packs usable by construction robots

Posted: Tue Mar 01, 2016 3:51 pm
by bobingabout
I'd vote for the original suggestion, it would mean you can choose which tools which construction robots can use.

in any case, either solution would be a major step forward when trying to add extra repair packs via modding.