- Edited
A lot of people have been asking for the ability to build within prohibited zones for a long time. So far it wasn't an issue imho. However, modding has long introduced and practiced anti-spamming measures when certain roof turrets or large part's lore prefer other parts to be build at a distance. Usually, it's easily solved with buffs but there have been cases where the rules have become complicated due to a part's form. In such cases, multiple zones with different sets of rules are required leading to lagging the game as the buffs have to be applied throughout game play and not just in building mode.
So I would like to suggest a new type of prohibitive zone which allows building inside it. The easiest way to upgrade without much coding I see can be done with ProhibitRects
by applying ID and category filters and switches such that those listed are either not allowed or allowed to be build.
The only complication is that the filters have to be applied to each rectangle in order to apply different rules.
So it could look like this:
ProhibitRects
[
{[1, -1, 2, 1], ComponentID = Lafiel.turret, IsBuildable = false}
{[2, -1, 1, 2], Category = defense, Rot = 0, IsBuildable = true}
{[2, -2, 2, 2], Categories = [reactor,corridor], IsBuildable = false}
]
Also it would be nice to have circular types of zones.