--/////////////////////////////////////////////////////////////////////////////////////////////////
--  (c) Galyana's Ultimate Empire at War Modifications
--  
--     ******    ***        *** ************           ***         ***
--    *      *    *          *   *         *            *           *
--   *        *   *          *   *                      *           *
--  *         *   *          *   *                      *           *
--  *             *          *   *    *         **** *  *           *
--  *             *          *   ******        *    *   *           *
--  *      ****   *          *   *    *       *     *   *    ***    *
--  *         *   *          *   *           *      *   *     *     *
--   *        *    *        *    *           *      *    *    *    *
--    *      *      *      *     *         *  *    **     *   *   *
--     ******        ******     ************   **** **     *******
--/////////////////////////////////////////////////////////////////////////////////////////////////
-- C O N F I D E N T I A L   S O U R C E   C O D E -- D O   N O T   D I S T R I B U T E
--/////////////////////////////////////////////////////////////////////////////////////////////////
--
--            File: GUEaW/Data/Scripts/AI/LandMode/BuildStructureLand.LUA
--
-- Original Editor: Giovanni Galyana
--
--   Final Edit By: Giovanni Galyana
--
--            Date: 26 April, 2023
--
--       Revisions: 7
--
--/////////////////////////////////////////////////////////////////////////////////////////////////
--BuildEconStructure.lua covers these
--UC_Rebel_Mineral_Processor | UC_Rebel_Ground_Mining_Facility
--UC_Empire_Mineral_Processor | UC_Empire_Ground_Mining_Facility
--UC_Underworld_Mineral_Processor | UC_Underworld_Ground_Mining_Facility
--UC_Hutts_Mineral_Processor | UC_Hutts_Ground_Mining_Facility
--UC_Pirate_Mineral_Processor | UC_Pirate_Ground_Mining_Facility

require("pgevents")

function Definitions()
	Category = "Tactical_Multiplayer_Build_Basic_Structure"
	IgnoreTarget = true
	TaskForce = {
	{
		"MainForce"
		,"UC_R_Ground_Power_Generator | UC_R_Ground_Base_Shield_740 | UC_R_Ground_Base_Shield_370 | UC_R_Ground_Base_Shield_740_Pad | UC_R_Ground_Base_Shield_370_Pad | UC_R_Ground_Turbolaser_Tower | UC_R_Ground_Turbolaser_Tower_N | UC_R_Ground_Light_Vehicle_Factory | UC_R_Ground_Heavy_Vehicle_Factory | UC_R_Ground_Communications_Array | UC_R_Ground_Research_Facility | UC_R_Ground_Hutt_Palace | UC_R_Ground_Uplink_Station | UC_Rebel_Ground_Refinery = 0,1"
		,"UC_E_Ground_Power_Generator | UC_E_Ground_Base_Shield_740 | UC_E_Ground_Base_Shield_370 | UC_E_Ground_Base_Shield_740_Pad | UC_E_Ground_Base_Shield_370_Pad | UC_E_Ground_Turbolaser_Tower | UC_E_Ground_Turbolaser_Tower_N | UC_E_Ground_Light_Vehicle_Factory | UC_E_Ground_Heavy_Vehicle_Factory | UC_E_Ground_Communications_Array | UC_E_Ground_Research_Facility | UC_E_Ground_Hutt_Palace | UC_E_Ground_Magnepulse_Cannon | UC_Empire_Ground_Refinery = 0,1"
		,"UC_U_Ground_Power_Generator | UC_U_Ground_Shutter_Shield | UC_U_Ground_Shutter_Shield_Small | UC_U_Ground_Base_Shield_740_Pad | UC_U_Ground_Base_Shield_370_Pad | UC_U_Ground_Turbolaser_Tower | UC_U_Ground_Turbolaser_Tower_N | UC_U_Ground_Droid_Works | UC_U_Ground_Vehicle_Factory | UC_U_Ground_Hutt_Palace | UC_U_Ground_Gravity_Generator | UC_Underworld_Ground_Refinery = 0,1"
		,"UC_H_Ground_Power_Generator | UC_H_Ground_Base_Shield_740 | UC_H_Ground_Base_Shield_370 | UC_H_Ground_Base_Shield_740_Pad | UC_H_Ground_Base_Shield_370_Pad | UC_H_Ground_Heavy_Beam_Tower | UC_H_Ground_Heavy_Beam_Tower_N | UC_H_Ground_Factory | UC_H_Ground_Communications_Array | UC_H_Ground_Advanced_Technologies_Facility | UC_H_Ground_Hutt_Palace | UC_H_Ground_Shutter_Shield | UC_Hutts_Ground_Refinery = 0,1"
		,"UC_P_Ground_Power_Generator | UC_P_Ground_Base_Shield_740 | UC_P_Ground_Base_Shield_400 | UC_P_Ground_Base_Shield_740_Pad | UC_P_Ground_Base_Shield_400_Pad | UC_P_Ground_Turbolaser_Tower_N = 0,1"
	}
	}
	RequiredCategories = {"Structure"}
	AllowFreeStoreUnits = false
end

function MainForce_Thread()
	BlockOnCommand(MainForce.Build_All())
	MainForce.Set_Plan_Result(true)
	ScriptExit()
end