Function InitSummonableCaps
- Line
- 10287
- Location
- blizzard.j
- Constant?
- no
- Type
- function
- Arguments
- nothing
- Returns
- nothing
| 10287 | function InitSummonableCaps takes nothing returns nothing |
| 10288 | local integer index |
| 10289 | |
| 10290 | set index = 0 |
| 10291 | loop
|
| 10292 | // upgraded units
|
| 10293 | // Note: Only do this if the corresponding upgrade is not yet researched
|
| 10294 | // Barrage - Siege Engines
|
| 10295 | if (not GetPlayerTechResearched(Player(index), 'Rhrt', true)) then |
| 10296 | call SetPlayerTechMaxAllowed(Player(index), 'hrtt', 0) |
| 10297 | endif
|
| 10298 | |
| 10299 | // Berserker Upgrade - Troll Berserkers
|
| 10300 | if (not GetPlayerTechResearched(Player(index), 'Robk', true)) then |
| 10301 | call SetPlayerTechMaxAllowed(Player(index), 'otbk', 0) |
| 10302 | endif
|
| 10303 | |
| 10304 | // max skeletons per player
|
| 10305 | call SetPlayerTechMaxAllowed(Player(index), 'uske', bj_MAX_SKELETONS) |
| 10306 | |
| 10307 | set index = index + 1 |
| 10308 | exitwhen index == bj_MAX_PLAYERS |
| 10309 | endloop
|
| 10310 | endfunction
|