getAvailableTroop()
Usage: |
city.getAvailableTroop() |
Example: |
city.getAvailableTroop() |
This function returns the total count of all troops or a specific troop attached to a city. It does not just count the troops in the city, but includes troops marching to or returning from somewhere.
echo "I have a total of {city.getAvailableTroop().carriage} transports assigned to this city"