--/////////////////////////////////////////////////////////////////////////////////////////////////
--  (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/SpaceMode/AI_Plan_ExpansionGeneric_SkirmishUpgradeSpaceStation.LUA
--
-- Original Editor: Giovanni Galyana
--
--   Final Edit By: Giovanni Galyana
--
--            Date: 4 June, 2019
--
--       Revisions: 3
--
--/////////////////////////////////////////////////////////////////////////////////////////////////



require("pgevents")


function Definitions()
	
	Category = "Skirmish_Upgrade_Space_Station"
	IgnoreTarget = true
	TaskForce = {
	{
		"ReserveForce"
		,"RS_Level_Two_Starbase_Upgrade | RS_Level_Three_Starbase_Upgrade | RS_Level_Four_Starbase_Upgrade | RS_Level_Five_Starbase_Upgrade | RS_Level_Two_Drydock_Upgrade | RS_Level_Three_Drydock_Upgrade | RS_Level_Four_Drydock_Upgrade | RS_Level_Five_Drydock_Upgrade = 0,1"
		,"ES_Level_Two_Starbase_Upgrade | ES_Level_Three_Starbase_Upgrade | ES_Level_Four_Starbase_Upgrade | ES_Level_Five_Starbase_Upgrade | ES_Flak_Defenses | ES_Level_Two_Drydock_Upgrade | ES_Level_Three_Drydock_Upgrade | ES_Level_Four_Drydock_Upgrade | ES_Level_Five_Drydock_Upgrade = 0,1"
		,"US_Level_Two_Starbase_Upgrade | US_Level_Three_Starbase_Upgrade | US_Level_Four_Starbase_Upgrade | US_Level_Five_Starbase_Upgrade | US_Level_Two_Drydock_Upgrade | US_Level_Three_Drydock_Upgrade | US_Level_Four_Drydock_Upgrade | US_Level_Five_Drydock_Upgrade = 0,1"
		,"HS_Level_Two_Starbase_Upgrade | HS_Level_Three_Starbase_Upgrade | HS_Level_Four_Starbase_Upgrade | HS_Level_Five_Starbase_Upgrade | HS_Level_Two_Drydock_Upgrade | HS_Level_Three_Drydock_Upgrade | HS_Level_Four_Drydock_Upgrade | HS_Level_Five_Drydock_Upgrade = 0,1"
		,"RST_Level_Two_Starbase_Upgrade | RST_Level_Three_Starbase_Upgrade | RST_Level_Four_Starbase_Upgrade | RST_Level_Five_Starbase_Upgrade | RST_Level_Two_Drydock_Upgrade | RST_Level_Three_Drydock_Upgrade | RST_Level_Four_Drydock_Upgrade | RST_Level_Five_Drydock_Upgrade = 0,1"
		,"EST_Level_Two_Starbase_Upgrade | EST_Level_Three_Starbase_Upgrade | EST_Level_Four_Starbase_Upgrade | EST_Level_Five_Starbase_Upgrade | EST_Flak_Defenses | EST_Level_Two_Drydock_Upgrade | EST_Level_Three_Drydock_Upgrade | EST_Level_Four_Drydock_Upgrade | EST_Level_Five_Drydock_Upgrade = 0,1"
		,"UST_Level_Two_Starbase_Upgrade | UST_Level_Three_Starbase_Upgrade | UST_Level_Four_Starbase_Upgrade | UST_Level_Five_Starbase_Upgrade | UST_Level_Two_Drydock_Upgrade | UST_Level_Three_Drydock_Upgrade | UST_Level_Four_Drydock_Upgrade | UST_Level_Five_Drydock_Upgrade = 0,1"
		,"HST_Level_Two_Starbase_Upgrade | HST_Level_Three_Starbase_Upgrade | HST_Level_Four_Starbase_Upgrade | HST_Level_Five_Starbase_Upgrade | HST_Level_Two_Drydock_Upgrade | HST_Level_Three_Drydock_Upgrade | HST_Level_Four_Drydock_Upgrade | HST_Level_Five_Drydock_Upgrade = 0,1"
	}
	}
	RequiredCategories = {"Upgrade"}
	AllowFreeStoreUnits = false

end

function ReserveForce_Thread()
			
	BlockOnCommand(ReserveForce.Produce_Force())
	ReserveForce.Set_Plan_Result(true)
		
	ScriptExit()
end