Script Summary: Calculates the strength of your troops/ships
Version: 1.3
Copyright: 2009, Yoshi Toranaga
License: GPL v3 (http://www.gnu.org/copyleft/gpl.html)
The 1.1 version of this script has been approved by GameForge for use on ikariam.com. All previous versions are not to be used!
Many thanks to Capriani and Martynius for their contributions!
Displays the attack, defense and stamina scores of a town (in town view).
It takes into account number of units/ships, their upgrade levels, the assault and resistance bonuses, and the wall bonus. It does not take into account other bonuses (i.e. healer, regeneration, ram). The data is saved into the browser when viewing barracks/shipyard pages.
Revision History
v1.3:
* Data is harvested from "Troops in town" as well. Upgrades are harvested from barracks/shipyard and are stored globally, while unit counts can be harvested from both pages. Scores are only printed if both counts and upgrades are available, otherwise a score of zero.
v1.2a:
* Bugfix for premium accounts.
v1.2:
* Update for 0.3.1: moved the information at the bottom of the first information pane. This should eliminate conflicts with the construction queue for premium accounts.
v1.1:
* Removed extra HTTP calls to the server. Data is cached from viewing barracks/shipyard pages.
* Removed graphic version and the options. The script is leaner and easier to read.
v1.0:
* Converted to jQuery.
* Options moved out of the Ikariam options page. Click the scores to reveal/hide options.
v0.1a:
* Added stamina.
v0.1:
* Added caching. Military scores are stored per town, each with its own timestamp.
* Added option to display scores using images instead of labels. Colours can be chosen to fit whatever theme you're using.
v0.0.3
* Fixed data scraping for non-english servers.
v0.0.2
Crushed a couple of bugs:
* lack of barracks or shipyard is properly handled
* don't try to calculate scores when peeking in the hideout
v0.0.1
Initial release.
Known issue: error if looking at someone else's town via hideout.



