Size: 308
Comment:
|
Size: 541
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
troops = "t:100k" troopBean = GetTroops(troops) |
This function will calculate the quantity of resources a specified troopBean object can carry 0 miles based upon current logistics tech. Usage:{{{ city.getCarryingLoad(troopBean) }}} == Example: == {{{ troopBean = GetTroops("t:100k") |
Line 5: | Line 12: |
carryingLoad = city.getCarryingLoad(troopBean) // the quantity of res your specified troopBean object can carry 0 miles based on logistics tech |
echo city.getCarryingLoad(troopBean) // outputs the quantity of res your specified troopBean object can carry 0 miles based on logistics tech }}} |
Line 8: | Line 18: |
CategoryScriptingLanguage | Related Functions: GetTroops() CategoryFunctions |
This function will calculate the quantity of resources a specified troopBean object can carry 0 miles based upon current logistics tech. Usage:
city.getCarryingLoad(troopBean)
Example:
troopBean = GetTroops("t:100k") // converts troop string into troopBean object echo city.getCarryingLoad(troopBean) // outputs the quantity of res your specified troopBean object can carry 0 miles based on logistics tech
Related Functions: