64 lines
2.5 KiB
Lua
64 lines
2.5 KiB
Lua
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
|
-- (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/PurchaseEarlyLandUpgrades.LUA
|
|
--
|
|
-- Original Editor: Giovanni Galyana
|
|
--
|
|
-- Final Edit By: Giovanni Galyana
|
|
--
|
|
-- Date: 17 December, 2023
|
|
--
|
|
-- Revisions: 4
|
|
--
|
|
--/////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
require("pgevents")
|
|
|
|
|
|
function Definitions()
|
|
|
|
Category = "Purchase_Early_Land_Upgrades"
|
|
IgnoreTarget = true
|
|
TaskForce = {
|
|
{
|
|
"ReserveForce"
|
|
,"DenySpecialWeaponAttach"
|
|
,"DenyHeroAttach"
|
|
|
|
-- Buy some early game relative upgrades for infantry
|
|
,"RL_Combat_Armor_L1_Upgrade | RL_Combat_Armor_L2_Upgrade | RL_Upgraded_Scopes_L1_Upgrade | RL_Weatherproof_Upgrade | EL_Increased_Mobility_Upgrade | EL_Scout_Snipers_Upgrade | EL_Weatherproof_Upgrade | UL_Ability_Recharge_L1_Upgrade | UL_Smuggled_Droid_Systems_L1_Upgrade | UL_Bounty_Upgrade | HL_Combat_Training_L1_Upgrade | HL_Combat_Training_L2_Upgrade | PL_More_Garrisons_L1_Upgrade | PL_Bacta_Pack_L1_Upgrade | PL_Reinforced_Structures_L1_Upgrade = 1"
|
|
}
|
|
}
|
|
|
|
RequiredCategories = {"Upgrade"}
|
|
AllowFreeStoreUnits = false
|
|
|
|
end
|
|
|
|
function ReserveForce_Thread()
|
|
|
|
BlockOnCommand(ReserveForce.Produce_Force())
|
|
ReserveForce.Set_Plan_Result(true)
|
|
|
|
ScriptExit()
|
|
end
|
|
|
|
|
|
|