diff --git a/src/main/scala/bootstrap/liftweb/Boot.scala b/src/main/scala/bootstrap/liftweb/Boot.scala
index 924c92e..e7d9aa0 100644
--- a/src/main/scala/bootstrap/liftweb/Boot.scala
+++ b/src/main/scala/bootstrap/liftweb/Boot.scala
@@ -94,8 +94,8 @@ class Boot extends Loggable {
Menu.i("Updates") / "updates",
Menu.i("Games") / "listgames",
Menu.i("Players") / PlayerSearchPage.pageName,
- Menu(Loc("Units", ExtLink("http://www.nanodesu.info/pa-db/"), "Units")),
- Menu(Loc("Ladder", ExtLink("http://ladder.pastats.tk/"), "Ladder")),
+ Menu(Loc("Units", ExtLink("http://pa-db.com/"), "Units")),
+ Menu(Loc("Chat", ExtLink("https://palobby.com/"), "Chat")),
Menu.i("Extra") / StatsPage.pageName,
Menu.i("Player") / PlayerPage.pageName >> Hidden,
Menu.i("Chart") / GamePage.pageName >> Hidden,
diff --git a/src/main/webapp/download.html b/src/main/webapp/download.html
index d1e5330..74e799c 100644
--- a/src/main/webapp/download.html
+++ b/src/main/webapp/download.html
@@ -2,13 +2,16 @@
-
Using the mod manager
- You can use
this manager that offers a direct download for PA Stats.
- If you don't want the manager and you know how modding in PA works you can simply add this link to your ui_mod_list.js as a global mod
+
+
+
To install PA Stats you need to use the Planetary Annihilation Mod Manager, in short: pamm
+
+
Don't have pamm yet? You are missing out on something awesome, click here!
- http://ns393951.ip-176-31-115.eu/mod/live/pa_stats_loader.js
-
-
\ No newline at end of file
diff --git a/src/main/webapp/static/js/armycomposition.js b/src/main/webapp/static/js/armycomposition.js
index e146a10..733a918 100644
--- a/src/main/webapp/static/js/armycomposition.js
+++ b/src/main/webapp/static/js/armycomposition.js
@@ -1,8 +1,8 @@
$(document).ready(function() {
var GHOSTERY_TIME = 10000;
- var unitTypeMapping = {"/pa/units/sea/missile_ship/missile_ship.json":["Tactical","Naval","Advanced","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/orbital/delta_v_engine/delta_v_engine.json":["PlanetEngine","Construction","Advanced","Orbital","NoBuild","FabAdvBuild","Important","Factory","Structure","Land"],"/pa/units/commanders/quad_xinthar/quad_xinthar.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/tank_armor/tank_armor.json":["Tank","Basic","NoBuild","FactoryBuild","Offense","Mobile","Land","Heavy"],"/pa/units/land/radar_adv/radar_adv.json":["Advanced","NoBuild","FabAdvBuild","Recon","Structure","Land"],"/pa/units/commanders/tank_base/tank_base.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/tank_laser_adv/tank_laser_adv.json":["Tank","Advanced","NoBuild","FactoryBuild","Offense","Mobile","Land"],"/pa/units/air/base_flyer/base_flyer.json":["Mobile","Air","NoBuild"],"/pa/units/sea/torpedo_launcher_adv/torpedo_launcher_adv.json":["Defense","Naval","Advanced","NoBuild","FabAdvBuild","Structure"],"/pa/units/orbital/orbital_lander/orbital_lander.json":["Basic","Orbital","NoBuild","Transport","FactoryBuild","Mobile"],"/pa/units/land/tank_light_laser/tank_light_laser.json":["Tank","Basic","NoBuild","FactoryBuild","Offense","Mobile","Land"],"/pa/units/land/fabrication_bot_combat/fabrication_bot_combat.json":["Bot","Basic","Construction","NoBuild","FactoryBuild","Offense","Mobile","Land"],"/pa/units/air/fighter_adv/fighter_adv.json":["Air","Fighter","Advanced","NoBuild","Offense","Mobile"],"/pa/units/commanders/avatar/avatar.json":["Basic","Construction","Debug","Air","Fabber","NoBuild","FactoryBuild","Mobile"],"/pa/units/land/assault_bot_adv/assault_bot_adv.json":["Bot","Advanced","NoBuild","FactoryBuild","Offense","Mobile","Land"],"/pa/units/air/air_scout/air_scout.json":["Basic","Air","Scout","NoBuild","FactoryBuild","Mobile"],"/pa/units/sea/sea_scout/sea_scout.json":["Naval","Basic","Scout","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/orbital/orbital_factory/orbital_factory.json":["Construction","Orbital","FabOrbBuild","NoBuild","Important","Factory","Structure"],"/pa/units/land/land_barrier/land_barrier.json":["Basic","CombatFabAdvBuild","Wall","NoBuild","FabBuild","FabAdvBuild","CmdBuild","Structure"],"/pa/units/land/bot_factory/bot_factory.json":["Bot","Basic","Construction","NoBuild","FabBuild","FabAdvBuild","Important","CmdBuild","Factory","Structure","Land"],"/pa/units/land/bot_aa/bot_aa.json":["Bot","Tank","Basic","AirDefense","NoBuild","Offense","Mobile","Land"],"/pa/units/air/bomber/bomber.json":["Basic","Air","Bomber","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/orbital/orbital_fighter/orbital_fighter.json":["Basic","Fighter","Orbital","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/land/radar/radar.json":["Basic","NoBuild","FabBuild","Recon","Structure","Land"],"/pa/units/land/bot_factory_adv/bot_factory_adv.json":["Bot","Construction","Advanced","NoBuild","Important","Factory","Structure","Land"],"/pa/units/commanders/quad_spiderofmean/quad_spiderofmean.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/amphibious_bot/amphibious_bot.json":["Bot","Basic","NoBuild","Offense","Mobile","Land"],"/pa/units/land/metal_extractor/metal_extractor.json":["Basic","Economy","NoBuild","MetalProduction","FabBuild","CmdBuild","Structure"],"/pa/units/land/tank_heavy_armor/tank_heavy_armor.json":["Tank","Advanced","NoBuild","FactoryBuild","Offense","Mobile","Land","Heavy"],"/pa/units/orbital/radar_satellite_adv/radar_satellite_adv.json":["Advanced","Orbital","NoBuild","FactoryBuild","Recon","Mobile"],"/pa/units/commanders/imperial_invictus/imperial_invictus.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/air/fighter/fighter.json":["Basic","Air","Fighter","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/commanders/raptor_centurion/raptor_centurion.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/metal_extractor_adv/metal_extractor_adv.json":["Advanced","Economy","NoBuild","MetalProduction","FabAdvBuild","Structure"],"/pa/units/air/bomber_adv/bomber_adv.json":["Tactical","Air","Advanced","Bomber","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/commanders/raptor_nemicus/raptor_nemicus.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/sea/fabrication_sub/fabrication_sub.json":["Naval","Basic","Fabber","NoBuild","Mobile"],"/pa/units/orbital/orbital_fabrication_bot/orbital_fabrication_bot.json":["Basic","Construction","Orbital","Fabber","NoBuild","FactoryBuild","Mobile"],"/pa/units/commanders/imperial_theta/imperial_theta.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/bot_grenadier/bot_grenadier.json":["Bot","Basic","NoBuild","Artillery","FactoryBuild","Offense","Mobile","Land"],"/pa/units/land/fabrication_vehicle/fabrication_vehicle.json":["Tank","Basic","Construction","Fabber","NoBuild","FactoryBuild","Mobile","Land"],"/pa/units/commanders/quad_base/quad_base.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/air_defense_adv/air_defense_adv.json":["Defense","Advanced","AirDefense","NoBuild","FabAdvBuild","Structure","Land"],"/pa/units/commanders/quad_sacrificiallamb/quad_sacrificiallamb.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/orbital/radar_satellite/radar_satellite.json":["Basic","Orbital","NoBuild","FactoryBuild","Recon","Mobile"],"/pa/units/land/nuke_launcher/nuke_launcher.json":["Nuke","Advanced","NoBuild","FabAdvBuild","Important","Offense","Factory","Structure","Land"],"/pa/units/land/bot_tactical_missile/bot_tactical_missile.json":["Tactical","Bot","Tank","Advanced","NoBuild","FactoryBuild","Offense","Mobile","Land"],"/pa/units/land/energy_plant_adv/energy_plant_adv.json":["Advanced","Economy","NoBuild","FabAdvBuild","EnergyProduction","Structure"],"/pa/units/air/gunship/gunship.json":["Air","Advanced","Gunship","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/orbital/base_orbital/base_orbital.json":["Mobile","Orbital","NoBuild"],"/pa/units/land/energy_storage/energy_storage.json":["Basic","Economy","NoBuild","FabBuild","FabAdvBuild","CmdBuild","Structure"],"/pa/units/commanders/raptor_beast/raptor_beast.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/tactical_missile_launcher/tactical_missile_launcher.json":["Tactical","Defense","Advanced","NoBuild","FabAdvBuild","Important","Structure","Land"],"/pa/units/commanders/tank_aeson/tank_aeson.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/air_defense/air_defense.json":["Defense","Basic","CombatFabAdvBuild","AirDefense","NoBuild","FabBuild","FabAdvBuild","CmdBuild","Structure","Land"],"/pa/units/sea/torpedo_launcher/torpedo_launcher.json":["Defense","Naval","Basic","CombatFabAdvBuild","NoBuild","FabBuild","CmdBuild","Structure"],"/pa/units/commanders/raptor_rallus/raptor_rallus.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/air/air_factory_adv/air_factory_adv.json":["Construction","Air","Advanced","NoBuild","Important","Factory","Structure"],"/pa/units/air/fabrication_aircraft_adv/fabrication_aircraft_adv.json":["Construction","Air","Advanced","Fabber","NoBuild","FactoryBuild","Mobile"],"/pa/units/land/base_structure/base_structure.json":["Structure","NoBuild"],"/pa/units/land/energy_plant/energy_plant.json":["Basic","Economy","NoBuild","FabBuild","CmdBuild","EnergyProduction","Structure"],"/pa/units/land/fabrication_bot_combat_adv/fabrication_bot_combat_adv.json":["Bot","Construction","Advanced","NoBuild","FactoryBuild","Mobile","Land"],"/pa/units/orbital/orbital_laser/orbital_laser.json":["LaserPlatform","Advanced","Orbital","NoBuild","FactoryBuild","Important","Offense","Mobile"],"/pa/units/land/tank_amphibious_adv/tank_amphibious_adv.json":["Tank","NoBuild","Offense","Mobile","Land"],"/pa/units/sea/battleship/battleship.json":["Naval","Advanced","NoBuild","Artillery","FactoryBuild","Offense","Mobile"],"/pa/units/orbital/deep_space_radar/deep_space_radar.json":["Advanced","Orbital","NoBuild","FabBuild","FabAdvBuild","Important","Recon","Structure"],"/pa/units/sea/fabrication_ship_adv/fabrication_ship_adv.json":["Naval","Construction","Advanced","Fabber","NoBuild","FactoryBuild","Mobile"],"/pa/units/sea/base_ship/base_ship.json":["Naval","Mobile","NoBuild"],"/pa/units/commanders/quad_shadowdaemon/quad_shadowdaemon.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/sea/naval_factory_adv/naval_factory_adv.json":["Naval","Construction","Advanced","NoBuild","Important","Factory","Structure"],"/pa/units/commanders/imperial_base/imperial_base.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/imperial_delta/imperial_delta.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/quad_gambitdfa/quad_gambitdfa.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/sea/destroyer/destroyer.json":["Naval","Basic","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/land/fabrication_vehicle_adv/fabrication_vehicle_adv.json":["Tank","Construction","Advanced","Fabber","NoBuild","FactoryBuild","Mobile","Land"],"/pa/units/orbital/mining_platform/mining_platform.json":["Orbital","FabOrbBuild","Structure","NoBuild"],"/pa/units/land/laser_defense/laser_defense.json":["Defense","Basic","NoBuild","FabBuild","Structure","Land","SurfaceDefense"],"/pa/units/land/artillery_long/artillery_long.json":["Defense","Advanced","NoBuild","Artillery","FabAdvBuild","Important","Structure","Land"],"/pa/units/land/bot_sniper/bot_sniper.json":["Bot","Advanced","NoBuild","Artillery","FactoryBuild","Offense","Mobile","Land"],"/pa/units/orbital/defense_satellite/defense_satellite.json":["Defense","Advanced","Orbital","FabOrbBuild","NoBuild","OrbitalDefense","Structure"],"/pa/units/land/land_scout/land_scout.json":["Tank","Basic","Scout","NoBuild","FactoryBuild","Mobile","Land"],"/pa/units/land/base_bot/base_bot.json":["Bot","Mobile","Land","NoBuild"],"/pa/units/sea/nuclear_sub/nuclear_sub.json":["Naval","Advanced","Sub","NoBuild","Offense","Mobile"],"/pa/units/land/bot_bomb/bot_bomb.json":["Bot","Basic","NoBuild","FactoryBuild","Mobile","Land"],"/pa/units/commanders/imperial_gamma/imperial_gamma.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/raptor_betadyne/raptor_betadyne.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/base_unit/base_unit.json":["Land","NoBuild","Structure"],"/pa/units/land/fabrication_bot_adv/fabrication_bot_adv.json":["Bot","Construction","Advanced","Fabber","NoBuild","FactoryBuild","Mobile","Land"],"/pa/units/commanders/imperial_alpha/imperial_alpha.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/assault_bot/assault_bot.json":["Bot","Basic","NoBuild","FactoryBuild","Offense","Mobile","Land"],"/pa/units/land/unit_cannon/unit_cannon.json":["Structure","Advanced","NoBuild"],"/pa/units/commanders/imperial_progenitor/imperial_progenitor.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/air/fabrication_aircraft/fabrication_aircraft.json":["Basic","Construction","Air","Fabber","NoBuild","FactoryBuild","Mobile"],"/pa/units/orbital/solar_array/solar_array.json":["Advanced","Orbital","Economy","NoBuild","FactoryBuild","Mobile","EnergyProduction"],"/pa/units/land/vehicle_factory/vehicle_factory.json":["Tank","Basic","Construction","NoBuild","FabBuild","FabAdvBuild","Important","CmdBuild","Factory","Structure","Land"],"/pa/units/sea/sea_mine/sea_mine.json":["Defense","Naval","Basic","NoBuild","Structure"],"/pa/units/land/base_vehicle/base_vehicle.json":["Tank","Mobile","Land","NoBuild"],"/pa/units/land/aa_missile_vehicle/aa_missile_vehicle.json":["Tank","Basic","AirDefense","NoBuild","FactoryBuild","Mobile","Land"],"/pa/units/sea/fabrication_ship/fabrication_ship.json":["Naval","Basic","Construction","Fabber","NoBuild","FactoryBuild","Mobile"],"/pa/units/land/tank_heavy_mortar/tank_heavy_mortar.json":["Tank","Advanced","NoBuild","Artillery","FactoryBuild","Offense","Mobile","Land"],"/pa/units/land/laser_defense_single/laser_defense_single.json":["Defense","Basic","CombatFabAdvBuild","NoBuild","FabBuild","CmdBuild","Structure","Land","SurfaceDefense"],"/pa/units/commanders/quad_osiris/quad_osiris.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/quad_calyx/quad_calyx.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/tank_hover/tank_hover.json":["Tank","Basic","NoBuild","Offense","Mobile","Land"],"/pa/units/orbital/orbital_launcher/orbital_launcher.json":["Construction","Orbital","NoBuild","FabBuild","FabAdvBuild","Important","Factory","Structure","Land"],"/pa/units/land/artillery_short/artillery_short.json":["Defense","Basic","NoBuild","Artillery","FabBuild","Structure"],"/pa/units/land/vehicle_factory_adv/vehicle_factory_adv.json":["Tank","Construction","Advanced","NoBuild","Important","Factory","Structure","Land"],"/pa/units/commanders/raptor_base/raptor_base.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/imperial_aryst0krat/imperial_aryst0krat.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/land_mine/land_mine.json":["Defense","Basic","CombatFabAdvBuild","CombatFabBuild","Land"],"/pa/units/land/metal_storage/metal_storage.json":["Basic","Economy","NoBuild","FabBuild","FabAdvBuild","CmdBuild","Structure"],"/pa/units/land/bot_spider_adv/bot_spider_adv.json":["Bot","NoBuild","Offense","Mobile","Land"],"/pa/units/sea/attack_sub/attack_sub.json":["Naval","Basic","Sub","NoBuild","Offense","Mobile"],"/pa/units/commanders/imperial_able/imperial_able.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/base_commander/base_commander.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/orbital/orbital_egg/orbital_egg.json":["Orbital","Mobile","NoBuild"],"/pa/units/sea/naval_factory/naval_factory.json":["Naval","Basic","Construction","NoBuild","FabBuild","FabAdvBuild","Important","CmdBuild","Factory","Structure"],"/pa/units/land/fabrication_bot/fabrication_bot.json":["Bot","Basic","Construction","Fabber","NoBuild","FactoryBuild","Mobile","Land"],"/pa/units/commanders/quad_armalisk/quad_armalisk.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/air/air_factory/air_factory.json":["Basic","Construction","Air","NoBuild","FabBuild","FabAdvBuild","Important","CmdBuild","Factory","Structure"],"/pa/units/air/transport/transport.json":["Air","Advanced","NoBuild","Transport","FactoryBuild","Mobile"],"/pa/units/land/laser_defense_adv/laser_defense_adv.json":["Defense","Advanced","NoBuild","FabAdvBuild","Structure","Land","SurfaceDefense"],"/pa/units/land/teleporter/teleporter.json":["CombatFabAdvBuild","Teleporter","FabOrbBuild","NoBuild","FabBuild","FabAdvBuild","CmdBuild","CombatFabBuild","Structure"],"/pa/units/sea/sonar_adv/sonar_adv.json":["Structure","Recon","NoBuild"],"/pa/units/land/anti_nuke_launcher/anti_nuke_launcher.json":["Defense","NukeDefense","Advanced","NoBuild","FabAdvBuild","Important","Factory","Structure","Land"],"/pa/units/sea/frigate/frigate.json":["Naval","Basic","AirDefense","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/sea/sonar/sonar.json":["Structure","Recon","NoBuild"],"/pa/units/orbital/ion_defense/ion_defense.json":["Defense","Basic","NoBuild","FabBuild","FabAdvBuild","OrbitalDefense","Structure"],"/pa/units/land/control_module/control_module.json":["Advanced","NoBuild","FabAdvBuild","Important","Structure","ControlModule"],"/pa/units/orbital/base_orbital_structure/base_orbital_structure.json":["Structure","NoBuild"],"/pa/units/land/avatar_factory/avatar_factory.json":["Tank","Construction","NoBuild","Factory","Structure","Land"]};
-
+ var unitTypeMapping = {"/pa/units/sea/missile_ship/missile_ship.json":["Tactical","Naval","Advanced","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/orbital/delta_v_engine/delta_v_engine.json":["PlanetEngine","Construction","Advanced","Orbital","NoBuild","FabAdvBuild","Important","Factory","Structure","Land"],"/pa/units/commanders/quad_xinthar/quad_xinthar.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/tank_armor/tank_armor.json":["Tank","Basic","NoBuild","FactoryBuild","Offense","Mobile","Land","Heavy"],"/pa/units/land/radar_adv/radar_adv.json":["Advanced","NoBuild","FabAdvBuild","Recon","Structure","Land"],"/pa/units/commanders/tank_base/tank_base.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/tank_laser_adv/tank_laser_adv.json":["Tank","Advanced","NoBuild","FactoryBuild","Offense","Mobile","Land"],"/pa/units/air/base_flyer/base_flyer.json":["Mobile","Air","NoBuild"],"/pa/units/sea/torpedo_launcher_adv/torpedo_launcher_adv.json":["Defense","Naval","Advanced","NoBuild","FabAdvBuild","Structure"],"/pa/units/commanders/quad_twoboots/quad_twoboots.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/orbital/orbital_lander/orbital_lander.json":["Basic","Orbital","NoBuild","Transport","FactoryBuild","Mobile"],"/pa/units/land/tank_light_laser/tank_light_laser.json":["Tank","Basic","CannonBuildable","NoBuild","FactoryBuild","Offense","Mobile","Land"],"/pa/units/land/fabrication_bot_combat/fabrication_bot_combat.json":["Bot","Basic","Construction","CannonBuildable","NoBuild","FactoryBuild","Offense","Mobile","Land"],"/pa/units/air/fighter_adv/fighter_adv.json":["Air","Fighter","Advanced","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/commanders/avatar/avatar.json":["Basic","Construction","Debug","Air","Fabber","NoBuild","FactoryBuild","Mobile"],"/pa/units/commanders/imperial_gnugfur/imperial_gnugfur.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/assault_bot_adv/assault_bot_adv.json":["Bot","CannonBuildable","Advanced","NoBuild","FactoryBuild","Offense","Mobile","Land"],"/pa/units/air/air_scout/air_scout.json":["Basic","Air","Scout","NoBuild","FactoryBuild","Mobile"],"/pa/units/sea/sea_scout/sea_scout.json":["Naval","Basic","Scout","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/orbital/orbital_factory/orbital_factory.json":["Construction","Advanced","Orbital","FabOrbBuild","NoBuild","Important","Factory","Structure"],"/pa/units/land/land_barrier/land_barrier.json":["Basic","CombatFabAdvBuild","Wall","NoBuild","FabBuild","FabAdvBuild","CmdBuild","CombatFabBuild","Structure"],"/pa/units/land/bot_factory/bot_factory.json":["Bot","Basic","Construction","NoBuild","FabBuild","FabAdvBuild","Important","CmdBuild","Factory","Structure","Land"],"/pa/units/land/bot_aa/bot_aa.json":["Bot","Tank","Basic","AirDefense","NoBuild","Offense","Mobile","Land"],"/pa/units/air/bomber/bomber.json":["Basic","Air","Bomber","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/commanders/raptor_zaazzaa/raptor_zaazzaa.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/orbital/orbital_fighter/orbital_fighter.json":["Basic","Fighter","Orbital","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/land/radar/radar.json":["Basic","NoBuild","FabBuild","Recon","Structure","Land"],"/pa/units/land/bot_factory_adv/bot_factory_adv.json":["Bot","Construction","Advanced","NoBuild","Important","Factory","Structure","Land"],"/pa/units/commanders/quad_spiderofmean/quad_spiderofmean.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/amphibious_bot/amphibious_bot.json":["Bot","Basic","NoBuild","Offense","Mobile","Land"],"/pa/units/commanders/imperial_seniorhelix/imperial_seniorhelix.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/metal_extractor/metal_extractor.json":["Basic","Economy","NoBuild","MetalProduction","FabBuild","CmdBuild","Structure"],"/pa/units/land/tank_heavy_armor/tank_heavy_armor.json":["Tank","Advanced","NoBuild","FactoryBuild","Offense","Mobile","Land","Heavy"],"/pa/units/orbital/radar_satellite_adv/radar_satellite_adv.json":["Advanced","Orbital","NoBuild","FactoryBuild","Recon","Mobile"],"/pa/units/commanders/imperial_invictus/imperial_invictus.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/air/fighter/fighter.json":["Basic","Air","Fighter","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/commanders/raptor_centurion/raptor_centurion.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/metal_extractor_adv/metal_extractor_adv.json":["Advanced","Economy","NoBuild","MetalProduction","FabAdvBuild","Structure"],"/pa/units/air/bomber_adv/bomber_adv.json":["Tactical","Air","Advanced","Bomber","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/commanders/raptor_nemicus/raptor_nemicus.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/sea/fabrication_sub/fabrication_sub.json":["Naval","Basic","Fabber","NoBuild","Mobile"],"/pa/units/commanders/quad_mobiousblack/quad_mobiousblack.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/orbital/orbital_fabrication_bot/orbital_fabrication_bot.json":["Basic","Construction","Orbital","Fabber","NoBuild","FactoryBuild","Mobile"],"/pa/units/commanders/imperial_theta/imperial_theta.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/bot_grenadier/bot_grenadier.json":["Bot","Basic","CannonBuildable","NoBuild","Artillery","FactoryBuild","Offense","Mobile","Land"],"/pa/units/land/fabrication_vehicle/fabrication_vehicle.json":["Tank","Basic","Construction","CannonBuildable","Fabber","NoBuild","FactoryBuild","Mobile","Land"],"/pa/units/commanders/quad_base/quad_base.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/air_defense_adv/air_defense_adv.json":["Defense","Advanced","AirDefense","NoBuild","FabAdvBuild","Structure","Land"],"/pa/units/commanders/quad_sacrificiallamb/quad_sacrificiallamb.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/orbital/radar_satellite/radar_satellite.json":["Basic","Orbital","NoBuild","FactoryBuild","Recon","Mobile"],"/pa/units/land/nuke_launcher/nuke_launcher.json":["Nuke","Advanced","NoBuild","FabAdvBuild","Important","Offense","Factory","Structure","Land"],"/pa/units/land/bot_tactical_missile/bot_tactical_missile.json":["Tactical","Bot","Tank","Advanced","NoBuild","FactoryBuild","Offense","Mobile","Land"],"/pa/units/land/energy_plant_adv/energy_plant_adv.json":["Advanced","Economy","NoBuild","FabAdvBuild","EnergyProduction","Structure"],"/pa/units/air/gunship/gunship.json":["Air","Advanced","Gunship","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/orbital/base_orbital/base_orbital.json":["Mobile","Orbital","NoBuild"],"/pa/units/commanders/imperial_sangudo/imperial_sangudo.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/energy_storage/energy_storage.json":["Basic","Economy","NoBuild","FabBuild","FabAdvBuild","CmdBuild","Structure"],"/pa/units/commanders/imperial_chronoblip/imperial_chronoblip.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/raptor_beast/raptor_beast.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/tactical_missile_launcher/tactical_missile_launcher.json":["Tactical","Defense","Advanced","NoBuild","FabAdvBuild","Important","Structure","Land"],"/pa/units/commanders/raptor_diremachine/raptor_diremachine.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/imperial_aceal/imperial_aceal.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/tank_aeson/tank_aeson.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/air_defense/air_defense.json":["Defense","Basic","CombatFabAdvBuild","AirDefense","NoBuild","FabBuild","FabAdvBuild","CmdBuild","Structure","Land"],"/pa/units/sea/torpedo_launcher/torpedo_launcher.json":["Defense","Naval","Basic","CombatFabAdvBuild","NoBuild","FabBuild","CmdBuild","Structure"],"/pa/units/commanders/raptor_rallus/raptor_rallus.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/air/air_factory_adv/air_factory_adv.json":["Construction","Air","Advanced","NoBuild","Important","Factory","Structure"],"/pa/units/air/fabrication_aircraft_adv/fabrication_aircraft_adv.json":["Construction","Air","Advanced","Fabber","NoBuild","FactoryBuild","Mobile"],"/pa/units/land/base_structure/base_structure.json":["Structure","NoBuild"],"/pa/units/land/energy_plant/energy_plant.json":["Basic","Economy","NoBuild","FabBuild","CmdBuild","EnergyProduction","Structure"],"/pa/units/land/fabrication_bot_combat_adv/fabrication_bot_combat_adv.json":["Bot","Construction","CannonBuildable","Advanced","NoBuild","FactoryBuild","Mobile","Land"],"/pa/units/orbital/orbital_laser/orbital_laser.json":["LaserPlatform","Advanced","Orbital","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/land/tank_amphibious_adv/tank_amphibious_adv.json":["Tank","NoBuild","Offense","Mobile","Land"],"/pa/units/sea/battleship/battleship.json":["Naval","Advanced","NoBuild","Artillery","FactoryBuild","Offense","Mobile"],"/pa/units/orbital/deep_space_radar/deep_space_radar.json":["Advanced","Orbital","NoBuild","FabBuild","FabAdvBuild","Important","Recon","Structure"],"/pa/units/sea/fabrication_ship_adv/fabrication_ship_adv.json":["Naval","Construction","Advanced","Fabber","NoBuild","FactoryBuild","Mobile"],"/pa/units/sea/base_ship/base_ship.json":["Naval","Mobile","NoBuild"],"/pa/units/commanders/quad_shadowdaemon/quad_shadowdaemon.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/raptor_majuju/raptor_majuju.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/quad_potbelly79/quad_potbelly79.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/sea/naval_factory_adv/naval_factory_adv.json":["Naval","Construction","Advanced","NoBuild","Important","Factory","Structure"],"/pa/units/commanders/imperial_base/imperial_base.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/imperial_delta/imperial_delta.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/quad_gambitdfa/quad_gambitdfa.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/sea/destroyer/destroyer.json":["Naval","Basic","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/land/fabrication_vehicle_adv/fabrication_vehicle_adv.json":["Tank","Construction","CannonBuildable","Advanced","Fabber","NoBuild","FactoryBuild","Mobile","Land"],"/pa/units/orbital/mining_platform/mining_platform.json":["Orbital","FabOrbBuild","Economy","NoBuild","MetalProduction","EnergyProduction","Structure"],"/pa/units/land/laser_defense/laser_defense.json":["Defense","Basic","NoBuild","FabBuild","Structure","Land","SurfaceDefense"],"/pa/units/land/artillery_long/artillery_long.json":["Defense","Advanced","NoBuild","Artillery","FabAdvBuild","Important","Structure","Land"],"/pa/units/land/bot_sniper/bot_sniper.json":["Bot","Advanced","NoBuild","Artillery","FactoryBuild","Offense","Mobile","Land"],"/pa/units/orbital/defense_satellite/defense_satellite.json":["Defense","Advanced","Orbital","FabOrbBuild","NoBuild","OrbitalDefense","Structure"],"/pa/units/land/land_scout/land_scout.json":["Tank","Basic","Scout","NoBuild","FactoryBuild","Mobile","Land"],"/pa/units/land/base_bot/base_bot.json":["Bot","Mobile","Land","NoBuild"],"/pa/units/sea/nuclear_sub/nuclear_sub.json":["Naval","Advanced","Sub","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/land/bot_bomb/bot_bomb.json":["Bot","Basic","CannonBuildable","NoBuild","FactoryBuild","Offense","Mobile","Land"],"/pa/units/commanders/imperial_kapowaz/imperial_kapowaz.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/raptor_beniesk/raptor_beniesk.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/imperial_gamma/imperial_gamma.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/raptor_betadyne/raptor_betadyne.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/raptor_iwmiked/raptor_iwmiked.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/base_unit/base_unit.json":["Land","NoBuild","Structure"],"/pa/units/land/fabrication_bot_adv/fabrication_bot_adv.json":["Bot","Construction","CannonBuildable","Advanced","Fabber","NoBuild","FactoryBuild","Mobile","Land"],"/pa/units/commanders/imperial_alpha/imperial_alpha.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/assault_bot/assault_bot.json":["Bot","Basic","CannonBuildable","NoBuild","FactoryBuild","Offense","Mobile","Land"],"/pa/units/land/unit_cannon/unit_cannon.json":["Advanced","NoBuild","FabAdvBuild","Important","Factory","Structure"],"/pa/units/commanders/imperial_progenitor/imperial_progenitor.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/air/fabrication_aircraft/fabrication_aircraft.json":["Basic","Construction","Air","Fabber","NoBuild","FactoryBuild","Mobile"],"/pa/units/commanders/imperial_enzomatrix/imperial_enzomatrix.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/orbital/solar_array/solar_array.json":["Advanced","Orbital","Economy","NoBuild","FactoryBuild","Mobile","EnergyProduction"],"/pa/units/land/vehicle_factory/vehicle_factory.json":["Tank","Basic","Construction","NoBuild","FabBuild","FabAdvBuild","Important","CmdBuild","Factory","Structure","Land"],"/pa/units/commanders/quad_ajax/quad_ajax.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/sea/sea_mine/sea_mine.json":["Defense","Naval","Basic","NoBuild","Structure"],"/pa/units/land/base_vehicle/base_vehicle.json":["Tank","Mobile","Land","NoBuild"],"/pa/units/land/aa_missile_vehicle/aa_missile_vehicle.json":["Tank","Basic","CannonBuildable","AirDefense","NoBuild","FactoryBuild","Offense","Mobile","Land"],"/pa/units/sea/fabrication_ship/fabrication_ship.json":["Naval","Basic","Construction","Fabber","NoBuild","FactoryBuild","Mobile"],"/pa/units/land/tank_heavy_mortar/tank_heavy_mortar.json":["Tank","Advanced","NoBuild","Artillery","FactoryBuild","Offense","Mobile","Land"],"/pa/units/land/laser_defense_single/laser_defense_single.json":["Defense","Basic","CombatFabAdvBuild","NoBuild","FabBuild","CmdBuild","Structure","Land","SurfaceDefense"],"/pa/units/commanders/quad_osiris/quad_osiris.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/quad_calyx/quad_calyx.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/tank_hover/tank_hover.json":["Tank","Basic","NoBuild","Offense","Mobile","Land"],"/pa/units/orbital/orbital_launcher/orbital_launcher.json":["Basic","Construction","Orbital","NoBuild","FabBuild","FabAdvBuild","Important","Factory","Structure","Land"],"/pa/units/land/artillery_short/artillery_short.json":["Defense","Basic","NoBuild","Artillery","FabBuild","Structure"],"/pa/units/land/vehicle_factory_adv/vehicle_factory_adv.json":["Tank","Construction","Advanced","NoBuild","Important","Factory","Structure","Land"],"/pa/units/commanders/raptor_base/raptor_base.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/imperial_aryst0krat/imperial_aryst0krat.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/raptor_stickman9000/raptor_stickman9000.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/land_mine/land_mine.json":["Defense","Basic","CombatFabAdvBuild","CombatFabBuild","Land"],"/pa/units/land/metal_storage/metal_storage.json":["Basic","Economy","NoBuild","FabBuild","FabAdvBuild","CmdBuild","Structure"],"/pa/units/commanders/quad_raventhornn/quad_raventhornn.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/bot_spider_adv/bot_spider_adv.json":["Bot","NoBuild","Offense","Mobile","Land"],"/pa/units/commanders/imperial_thechessknight/imperial_thechessknight.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/imperial_fiveleafclover/imperial_fiveleafclover.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/sea/attack_sub/attack_sub.json":["Naval","Basic","Sub","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/commanders/imperial_able/imperial_able.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/base_commander/base_commander.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/orbital/orbital_egg/orbital_egg.json":["Orbital","Mobile","NoBuild"],"/pa/units/sea/naval_factory/naval_factory.json":["Naval","Basic","Construction","NoBuild","FabBuild","FabAdvBuild","Important","CmdBuild","Factory","Structure"],"/pa/units/land/fabrication_bot/fabrication_bot.json":["Bot","Basic","Construction","CannonBuildable","Fabber","NoBuild","FactoryBuild","Mobile","Land"],"/pa/units/commanders/tank_banditks/tank_banditks.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/commanders/quad_armalisk/quad_armalisk.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/air/air_factory/air_factory.json":["Basic","Construction","Air","NoBuild","FabBuild","FabAdvBuild","Important","CmdBuild","Factory","Structure"],"/pa/units/air/transport/transport.json":["Basic","Air","NoBuild","Transport","FactoryBuild","Mobile"],"/pa/units/land/laser_defense_adv/laser_defense_adv.json":["Defense","Advanced","NoBuild","FabAdvBuild","Structure","Land","SurfaceDefense"],"/pa/units/land/teleporter/teleporter.json":["CombatFabAdvBuild","Teleporter","FabOrbBuild","NoBuild","FabBuild","FabAdvBuild","CmdBuild","CombatFabBuild","Structure"],"/pa/units/sea/sonar_adv/sonar_adv.json":["Structure","Recon","NoBuild"],"/pa/units/commanders/quad_tokamaktech/quad_tokamaktech.json":["Construction","NoBuild","Commander","Offense","Mobile","Land"],"/pa/units/land/anti_nuke_launcher/anti_nuke_launcher.json":["Defense","NukeDefense","Advanced","NoBuild","FabAdvBuild","Important","Factory","Structure","Land"],"/pa/units/sea/frigate/frigate.json":["Naval","Basic","AirDefense","NoBuild","FactoryBuild","Offense","Mobile"],"/pa/units/sea/sonar/sonar.json":["Structure","Recon","NoBuild"],"/pa/units/orbital/ion_defense/ion_defense.json":["Defense","Basic","NoBuild","FabBuild","FabAdvBuild","OrbitalDefense","Structure"],"/pa/units/land/control_module/control_module.json":["Advanced","NoBuild","FabAdvBuild","Important","Structure","ControlModule"],"/pa/units/orbital/base_orbital_structure/base_orbital_structure.json":["Structure","NoBuild"],"/pa/units/land/avatar_factory/avatar_factory.json":["Tank","Construction","NoBuild","Factory","Structure","Land"]};
+
var parseColor = function(clr) {
if (clr == '' || clr == undefined) {
return [0,0,0];
@@ -38,9 +38,7 @@ $(document).ready(function() {
self.icon = ko.computed(function() {return imageBaseUrl +"units/"+ self.name() +".png"});
self.sicon = ko.computed(function() {return getIconForSpec(self.spec());});
self.linkToPaDb = ko.computed(function() {
- // this regex was necessary for pamatches, but brian has been slow about updates, so I now use my own pa-db
- // var link = /([^\/]+?\/[^\/]+?\/)(?=[^\/]*\.json)/.exec(self.spec());
- return "http://www.nanodesu.info/pa-db/recent/unit/"+self.name();
+ return "http://pa-db.com/unit/"+self.name();
});
self.aliveCount = ko.observable(0);
diff --git a/src/main/webapp/templates-hidden/default.html b/src/main/webapp/templates-hidden/default.html
index fdb8c44..e5fac71 100644
--- a/src/main/webapp/templates-hidden/default.html
+++ b/src/main/webapp/templates-hidden/default.html
@@ -13,7 +13,7 @@
This page needs javascript to work, please enable javascript!
-
+