forked from FAForever/fa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for Sorian AI to be able to use support factories (FAForever#3173)
Fixed Sorian, so He'll be able to make support factories.
- Loading branch information
Showing
14 changed files
with
997 additions
and
575 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,404 changes: 829 additions & 575 deletions
1,404
lua/AI/AIBuilders/SorianEconomyUpgradeBuilders.lua
Large diffs are not rendered by default.
Oops, something went wrong.
146 changes: 146 additions & 0 deletions
146
lua/AI/PlatoonTemplates/SorianPlatoonTemplatesFactory.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
-- Factory upgrade templates are not implemented into FAF !!! | ||
|
||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2LandFactoryUpgrade', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.TECH2 * categories.FACTORY * categories.LAND - categories.SUPPORTFACTORY, 1, 1, 'support', 'none' } | ||
} | ||
} | ||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2LandSupFactoryUpgrade1', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.UEF * categories.TECH2 * categories.SUPPORTFACTORY * categories.LAND, 1, 1, 'support', 'none' } | ||
} | ||
} | ||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2LandSupFactoryUpgrade2', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.AEON * categories.TECH2 * categories.SUPPORTFACTORY * categories.LAND, 1, 1, 'support', 'none' } | ||
} | ||
} | ||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2LandSupFactoryUpgrade3', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.CYBRAN * categories.TECH2 * categories.SUPPORTFACTORY * categories.LAND, 1, 1, 'support', 'none' } | ||
} | ||
} | ||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2LandSupFactoryUpgrade4', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.SERAPHIM * categories.TECH2 * categories.SUPPORTFACTORY * categories.LAND, 1, 1, 'support', 'none' } | ||
} | ||
} | ||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2LandSupFactoryUpgrade5', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.TECH2 * categories.SUPPORTFACTORY * categories.LAND - categories.SERAPHIM - categories.CYBRAN - categories.AEON - categories.UEF, 1, 1, 'support', 'none' } | ||
} | ||
} | ||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2AirFactoryUpgrade', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.TECH2 * categories.FACTORY * categories.AIR - categories.SUPPORTFACTORY, 1, 1, 'support', 'none' } | ||
} | ||
} | ||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2AirSupFactoryUpgrade1', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.UEF * categories.TECH2 * categories.SUPPORTFACTORY * categories.AIR, 1, 1, 'support', 'none' } | ||
} | ||
} | ||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2AirSupFactoryUpgrade2', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.AEON * categories.TECH2 * categories.SUPPORTFACTORY * categories.AIR, 1, 1, 'support', 'none' } | ||
} | ||
} | ||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2AirSupFactoryUpgrade3', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.CYBRAN * categories.TECH2 * categories.SUPPORTFACTORY * categories.AIR, 1, 1, 'support', 'none' } | ||
} | ||
} | ||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2AirSupFactoryUpgrade4', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.SERAPHIM * categories.TECH2 * categories.SUPPORTFACTORY * categories.AIR, 1, 1, 'support', 'none' } | ||
} | ||
} | ||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2AirSupFactoryUpgrade5', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.TECH2 * categories.SUPPORTFACTORY * categories.AIR - categories.SERAPHIM - categories.CYBRAN - categories.AEON - categories.UEF, 1, 1, 'support', 'none' } | ||
} | ||
} | ||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2SeaFactoryUpgrade', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.TECH2 * categories.FACTORY * categories.NAVAL - categories.SUPPORTFACTORY, 1, 1, 'support', 'none' } | ||
} | ||
} | ||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2SeaSupFactoryUpgrade1', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.UEF * categories.TECH2 * categories.SUPPORTFACTORY * categories.NAVAL, 1, 1, 'support', 'none' } | ||
} | ||
} | ||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2SeaSupFactoryUpgrade2', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.AEON * categories.TECH2 * categories.SUPPORTFACTORY * categories.NAVAL, 1, 1, 'support', 'none' } | ||
} | ||
} | ||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2SeaSupFactoryUpgrade3', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.CYBRAN * categories.TECH2 * categories.SUPPORTFACTORY * categories.NAVAL, 1, 1, 'support', 'none' } | ||
} | ||
} | ||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2SeaSupFactoryUpgrade4', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.SERAPHIM * categories.TECH2 * categories.SUPPORTFACTORY * categories.NAVAL, 1, 1, 'support', 'none' } | ||
} | ||
} | ||
-- AI Patch. Fix Support factory upgrade | ||
PlatoonTemplate { | ||
Name = 'T2SeaSupFactoryUpgrade5', | ||
Plan = 'UnitUpgradeAI', | ||
GlobalSquads = { | ||
{ categories.TECH2 * categories.SUPPORTFACTORY * categories.NAVAL - categories.SERAPHIM - categories.CYBRAN - categories.AEON - categories.UEF, 1, 1, 'support', 'none' } | ||
} | ||
} |