Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 18th, 2011  |  syntax: JavaScript  |  size: 7.37 KB  |  views: 44  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var Config = function () {
  2.    this.attack = {};
  3.    this.defence = {};
  4.    this.buildings = {};
  5.    this.buildings.moderate = {};
  6.    this.buildings.advanced = {};
  7.    this.buildings.fort = {};
  8.    this.units = {};
  9.    this.units.citizensoldier = {};
  10.    this.units.advanced = {};
  11.    this.units.siege = {};
  12.    this.priorities = {};
  13.    this.config = {};
  14.    this.attack.minattacksize=20;
  15.    this.attack.maxattacksize=60;
  16.    this.attack.enemyratio=1.5;
  17.    this.attack.groupsize=10;
  18.    this.defence.acquiredistance=220;
  19.    this.defence.releasedistance=250;
  20.    this.defence.groupradius=20;
  21.    this.defence.groupbreakradius=40;
  22.    this.defence.defenderratio=2;
  23.    this.defence.towers=10;
  24.    this.buildings.moderate.common = [ "structures/{civ}_barracks" ];
  25.    this.buildings.advanced.hele = [ "structures/{civ}_gymnasion",
  26.                                     "structures/{civ}_fortress" ];
  27.    this.buildings.advanced..cart = [ "structures/{civ}_fortress",
  28.                                      "structures/{civ}_embassy_celtic",
  29.                                      "structures/{civ}_embassy_iberian",
  30.                                      "structures/{civ}_embassy_italiote" ];
  31.    this.buildings.advanced.celt = [ "structures/{civ}_kennel",
  32.                                     "structures/{civ}_fortress_b",
  33.                                     "structures/{civ}_fortress_g" ];
  34.    this.buildings.advanced.iber = [ "structures/{civ}_fortress" ];
  35.    this.buildings.advanced.pers = [ "structures/{civ}_fortress",
  36.                                     "structures/{civ}_stables",
  37.                                     "structures/{civ}_apadana" ];
  38.    this.buildings.fort.common = [ "structures/{civ}_fortress" ];
  39.    this.buildings.fort.celt = [ "structures/{civ}_fortress_b",
  40.                                 "structures/{civ}_fortress_g" ];
  41.    this.units.citizensoldier.common = [ "units/{civ}_infantry_spearman_b",
  42.                                         "units/{civ}_infantry_slinger_b",
  43.                                         "units/{civ}_infantry_swordsman_b",
  44.                                         "units/{civ}_infantry_javelinist_b",
  45.                                         "units/{civ}_infantry_archer_b" ];
  46.    this.units.citizensoldier.hele = [ "units/hele_infantry_spearman_b",
  47.                                       "units/hele_infantry_javelinist_b",
  48.                                       "units/hele_infantry_archer_b" ];
  49.    this.units.citizensoldier.cart = [ "units/cart_infantry_spearman_b",
  50.                                       "units/cart_infantry_archer_b" ];
  51.    this.units.citizensoldier.celt = [ "units/celt_infantry_spearman_b",
  52.                                       "units/celt_infantry_javelinist_b" ];
  53.    this.units.citizensoldier.iber = [ "units/iber_infantry_spearman_b",
  54.                                       "units/iber_infantry_slinger_b",
  55.                                       "units/iber_infantry_swordsman_b",
  56.                                       "units/iber_infantry_javelinist_b" ];
  57.    this.units.citizensoldier.pers = [ "units/pers_infantry_spearman_b",
  58.                                       "units/pers_infantry_archer_b",
  59.                                       "units/pers_infantry_javelinist_b" ];
  60.    this.units.advanced.common = [ "units/{civ}_cavalry_spearman_b",
  61.                                   "units/{civ}_cavalry_javelinist_b",
  62.                                   "units/{civ}_champion_cavalry",
  63.                                   "units/{civ}_champion_infantry" ];
  64.    this.units.advanced.hele = [ "units/hele_cavalry_swordsman_b",
  65.                                 "units/hele_cavalry_javelinist_b",
  66.                                 "units/hele_champion_cavalry_mace",
  67.                                 "units/hele_champion_infantry_mace",
  68.                                 "units/hele_champion_infantry_polis",
  69.                                 "units/hele_champion_ranged_polis" ,
  70.                                 "units/thebes_sacred_band_hoplitai",
  71.                                 "units/thespian_melanochitones",
  72.                                 "units/sparta_hellenistic_phalangitai",
  73.                                 "units/thrace_black_cloak" ];
  74.    this.units.advanced.cart = [ "units/cart_cavalry_javelinist_b",
  75.                                 "units/cart_champion_cavalry",
  76.                                 "units/cart_infantry_swordsman_2_b",
  77.                                 "units/cart_cavalry_spearman_b",
  78.                                 "units/cart_infantry_javelinist_b",
  79.                                 "units/cart_infantry_slinger_b",
  80.                                 "units/cart_cavalry_swordsman_b",
  81.                                 "units/cart_infantry_swordsman_b",
  82.                                 "units/cart_cavalry_swordsman_2_b",
  83.                                 "units/cart_sacred_band_cavalry" ];
  84.    this.units.advanced.celt = [ "units/celt_cavalry_javelinist_b",
  85.                                 "units/celt_cavalry_swordsman_b",
  86.                                 "units/celt_champion_cavalry_gaul",
  87.                                 "units/celt_champion_infantry_gaul",
  88.                                 "units/celt_champion_cavalry_brit",
  89.                                 "units/celt_champion_infantry_brit",
  90.                                 "units/celt_fanatic" ];
  91.    this.units.advanced.iber = [ "units/iber_cavalry_spearman_b",
  92.                                 "units/iber_champion_cavalry",
  93.                                 "units/iber_champion_infantry" ];
  94.    this.units.advanced.pers = [ "units/pers_cavalry_javelinist_b",
  95.                                 "units/pers_champion_infantry",
  96.                                 "units/pers_champion_cavalry",
  97.                                 "units/pers_cavalry_spearman_b",
  98.                                 "units/pers_cavalry_swordsman_b",
  99.                                 "units/pers_cavalry_javelinist_b",
  100.                                 "units/pers_cavalry_archer_b",
  101.                                 "units/pers_kardakes_hoplite",
  102.                                 "units/pers_kardakes_skirmisher",
  103.                                 "units/pers_war_elephant" ];
  104.    this.units.siege.common = [ "units/{civ}_mechanical_siege_oxybeles",
  105.                                "units/{civ}_mechanical_siege_lithobolos",
  106.                                "units/{civ}_mechanical_siege_ballista",
  107.                                "units/{civ}_mechanical_siege_ram" ];
  108.    this.units.siege.hele = [ "units/hele_mechanical_siege_oxybeles",
  109.                              "units/hele_mechanical_siege_lithobolos" ];
  110.    this.units.siege.cart = [ "units/cart_mechanical_siege_ballista",
  111.                              "units/cart_mechanical_siege_oxybeles" ];
  112.    this.units.siege.celt = [ "units/celt_mechanical_siege_ram" ];
  113.    this.units.siege.iber = [ "units/iber_mechanical_siege_ram" ];
  114.    this.units.siege.pers = [ "units/pers_mechanical_siege_ram" ];
  115.    this.priorities.house = 500;
  116.    this.priorities.citizenSoldier = 100;
  117.    this.priorities.villager = 100;
  118.    this.priorities.economicBuilding = 30;
  119.    this.priorities.field = 4;
  120.    this.priorities.advancedSoldier = 30;
  121.    this.priorities.siege = 10;
  122.    this.priorities.militaryBuilding = 50;
  123.    this.priorities.defenceBuilding = 17;
  124.    this.priorities.civilCentre = 1000;
  125.    this.config.debug=false;
  126. }
  127.  
  128. Config.prototype.init = function(gameState) {
  129. }
clone this paste RAW Paste Data