How to prevent combat-robots from being added to the cap?

Place to get help with not working mods / modding interface.
Hamtato
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Jan 30, 2020 5:56 am
Contact:

How to prevent combat-robots from being added to the cap?

Post by Hamtato »

In my mod I've created a new entity that is a combat-robot type. Currently, it seems to share the same robot cap that defenders/destroyers have. I am trying to make my entity not have a cap while maintaining the cap that defenders/destroyers have. Distractors, however, are the same type as defenders/destroyers but don't seem to share the cap.

I've looked through the game files, but I can't seem to figure out how distractors are not getting limited by the following robots cap. Anyone know how this works? And where in the game files does this appear?
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: How to prevent combat-robots from being added to the cap?

Post by darkfrei »

Probably it comes from speed variously, need to see both prototypes.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4061
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: How to prevent combat-robots from being added to the cap?

Post by boskid »

If there is no

Code: Select all

    follows_player = true,
(or is set to false), it will not count towards follower count.
Hamtato
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Jan 30, 2020 5:56 am
Contact:

Re: How to prevent combat-robots from being added to the cap?

Post by Hamtato »

boskid wrote: Thu Jan 30, 2020 8:32 am If there is no

Code: Select all

    follows_player = true,
(or is set to false), it will not count towards follower count.
So is it currently not possible to have them follow the player and not count towards the cap? Or can this be solved with scripting?
Post Reply

Return to “Modding help”