Size: 1084
Comment:
|
Size: 1343
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
This function returns a TroopBean containing the total count of all troops attached to a city (not just the troops in the city, includes troops marching to or returning from somewhere | 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. |
Line 11: | Line 11: |
The available properties for the object are: {{{ foodConsumeRate peasants militia scouter pikemen swordsmen archer lightCavalry heavyCavalry carriage ballista batteringRam catapult }}} |
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