View difference between Paste ID: eaxMTZW7 and
SHOW:
|
|
- or go back to the newest paste.
1 | - | |
1 | + | # Additional troops - AI will now attempt to match troop upgrades with their opponent even before WR 8 |
2 | # This keeps AI games from becoming too one-sided once one team gets priests+ | |
3 | # Priests | |
4 | CTroopNumber03 = { | |
5 | PriorityFunction = function(unit) | |
6 | if EnemyHasUpgrade(unit, 'CTroopNumber03') or unit:GetAIBrain().Score.WarRank >= 8 then | |
7 | return 500 | |
8 | else | |
9 | return 0 | |
10 | end | |
11 | end, | |
12 | }, | |
13 | # Angels | |
14 | CTroopNumber05 = { | |
15 | PriorityFunction = function(unit) | |
16 | if EnemyHasUpgrade(unit, 'CTroopNumber05') or unit:GetAIBrain().Score.WarRank >= 8 then | |
17 | return 500 | |
18 | else | |
19 | return 0 | |
20 | end | |
21 | end, | |
22 | }, | |
23 | # Catapults | |
24 | CTroopNumber04 = { | |
25 | PriorityFunction = function(unit) | |
26 | if EnemyHasUpgrade(unit, 'CTroopNumber04') or unit:GetAIBrain().Score.WarRank >= 8 then | |
27 | return 500 | |
28 | else | |
29 | return 0 | |
30 | end | |
31 | end, | |
32 | }, | |
33 | # Giants | |
34 | CTroopNumber06 = { | |
35 | PriorityFunction = function(unit) | |
36 | if EnemyHasUpgrade(unit, 'CTroopNumber06') or unit:GetAIBrain().Score.WarRank >= 8 then | |
37 | return 500 | |
38 | else | |
39 | return 0 | |
40 | end | |
41 | end, | |
42 | }, |