|
Size: 1346
Comment:
|
Size: 1343
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 16: | Line 16: |
| peasants militia scouter pikemen swordsmen archer lightCavalry heavyCavalry carriage |
|
| Line 18: | Line 27: |
| carriage | |
| Line 20: | Line 28: |
| heavyCavalry lightCavalry militia peasants pikemen scouter swordsmen archer |
getAvailableTroop()
Usage: |
city.getAvailableTroop() |
Example: |
city.getAvailableTroop() |
This function returns an object with information about the troops attached to a city. It can give the total of all troops, a specific troop, or the troop upkeep in a city. It counts marching troops as well as those idle.
echo "I have a total of {city.getAvailableTroop().carriage} transports assigned to this city"
The available properties for the object are:
foodConsumeRate peasants militia scouter pikemen swordsmen archer lightCavalry heavyCavalry carriage ballista batteringRam catapult

![[+]](/moin_static/explorer/img/toggle1.png)

![[-]](/moin_static/explorer/img/toggle0.png)
