The below code is as far as I can go with the above objective but it isn't working fully, as the [create planet] production process won't complete.
I'd be most thankful if anyone can help.
The ideal result would be just allow Habitat Outposts to ONLY create planets and leave colonizing them to Colony ships. Cheers!
\Lua state\GUI\~GalaxyMap\@ChooseProduction.lua
Code: Select all
local refit_candidates = refit_option(push)
--habitat allow create planets
if (limit~='ships') and no_colony or sum(planet.pop?)==0
colony_bases(push)
end
--habitat.end
if (limit~='ships') and not no_colony