Limit how many of one equipment can be in a grid

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 451
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Limit how many of one equipment can be in a grid

Post by raiguard »

In Krastorio 2, there is an equipment called the "energy absorber" that allows you to be wirelessly charged via tesla coils. However, it comes with the limitation that you can only have one absorber. Right now, K2 does some trickery to limit you to a single absorber. However, this doesn't account for when the equipment is placed by a script.

I would like to request a prototype property on equipment that specifies a limit to how many of that equipment can be placed in the grid. Vanilla could use this for the belt immunity equipment, since having more than one doesn't provide any additional benefit, so naturally limiting the player to one would be a good way to represent that.
Don't forget, you're here forever.

Post Reply

Return to “Modding interface requests”