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.

The available properties for the object are:

foodConsumeRate
peasants 
militia  
scouter 
pikemen  
swordsmen  
archer  
lightCavalry 
heavyCavalry 
carriage 
ballista  
batteringRam 
catapult 


CategoryFunctions

getAvailableTroop (last edited 2015-04-23 04:43:46 by Inanna)