So my only solution is to set it on all the prototypes (see bellow)
The simplest form of my request is to get a different (new) default for the color of territory borders as to not mess with all the unit types. And secondly a way to define the colors for just the Demolisher's territory or just the territory on Vulcanus. Is it possible to include it in TerritorySettings?
Thanks!
Code: Select all
local default_enemy_color = data.raw["utility-constants"]["default"]["chart"]["default_enemy_color"]
local unit_types = {"unit-spawner", "segment", "segmented-unit", "spider-unit", "unit"}
for _, unit_type in pairs(unit_types) do
for _, prototype in pairs(data.raw[unit_type]) do
if not prototype.enemy_map_color then
prototype.enemy_map_color = default_enemy_color
end
end
end
data.raw["utility-constants"]["default"]["chart"]["default_enemy_territory_color"] = {0, 0, 0, 0}
data.raw["utility-constants"]["default"]["chart"]["default_enemy_color"] = {0, 0, 0, 0}