Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Additional troops - AI will now attempt to match troop upgrades with their opponent even before WR 8
- # This keeps AI games from becoming too one-sided once one team gets priests+
- # Priests
- CTroopNumber03 = {
- PriorityFunction = function(unit)
- if EnemyHasUpgrade(unit, 'CTroopNumber03') or unit:GetAIBrain().Score.WarRank >= 8 then
- return 500
- else
- return 0
- end
- end,
- },
- # Angels
- CTroopNumber05 = {
- PriorityFunction = function(unit)
- if EnemyHasUpgrade(unit, 'CTroopNumber05') or unit:GetAIBrain().Score.WarRank >= 8 then
- return 500
- else
- return 0
- end
- end,
- },
- # Catapults
- CTroopNumber04 = {
- PriorityFunction = function(unit)
- if EnemyHasUpgrade(unit, 'CTroopNumber04') or unit:GetAIBrain().Score.WarRank >= 8 then
- return 500
- else
- return 0
- end
- end,
- },
- # Giants
- CTroopNumber06 = {
- PriorityFunction = function(unit)
- if EnemyHasUpgrade(unit, 'CTroopNumber06') or unit:GetAIBrain().Score.WarRank >= 8 then
- return 500
- else
- return 0
- end
- end,
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement