• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (GUI)
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages

    Function

    usage:

    echo GetTroops().foodConsumption()

    examples:

    echo GetTroops("b:2m,r:1m,cp:1m").foodConsumption(60)

    Will echo the food consumption of to Troop Bean: b:2m,r:1m,cp:1m after 60 seconds.

    echo FormatNumber(GetTroops("b:"+city.getAvailableTroop().ballista+",r:"+city.getAvailableTroop().batteringRam+",cp:"+city.getAvailableTroop().catapult).foodConsumeRate)

    Will output the food consumption of the current cities ballista, Rams & Catapults.


    CategoryFunctions

    foodConsumeRate (last edited 2014-09-20 03:08:44 by LKD70)