
const TECH_TWO = [
     "R-Comp-CommandTurret01",
     "R-Comp-SynapticLink",
     "R-Cyborg-Metals01",
     "R-Cyborg-Metals02",
     "R-Cyborg-Metals03",
     "R-Defense-HardcreteWall",
     "R-Defense-MortarPit",
     "R-Defense-MRL",
     "R-Defense-Pillbox01",
     "R-Defense-Pillbox04",
     "R-Defense-Pillbox05",
     "R-Defense-Pillbox06",
     "R-Defense-TankTrap01",
     "R-Defense-Tower01",
     "R-Defense-Tower06",
     "R-Defense-WallTower01",
     "R-Defense-WallTower02",
     "R-Defense-WallTower03",
     "R-Defense-WallTower04",
     "R-Defense-WallTower06",
     "R-Defense-WallUpgrade01",
     "R-Defense-WallUpgrade02",
     "R-Defense-WallUpgrade03",
     "R-Struc-CommandRelay",
     "R-Struc-Factory-Cyborg",
     "R-Struc-Factory-Module",
     "R-Struc-Factory-Upgrade01",
     "R-Struc-Materials01",
     "R-Struc-Materials02",
     "R-Struc-Materials03",
     "R-Struc-PowerModuleMk1",
     "R-Struc-RepairFacility",
     "R-Struc-Research-Module",
     "R-Struc-Research-Upgrade01",
     "R-Struc-Research-Upgrade02",
     "R-Struc-Research-Upgrade03",
     "R-Struc-RprFac-Upgrade01",
     "R-Sys-CBSensor-Tower01",
     "R-Sys-Engineering01",
     "R-Sys-MobileRepairTurret01",
     "R-Sys-Sensor-Tower01",
     "R-Sys-Sensor-Turret01",
     "R-Sys-Sensor-Upgrade01",
     "R-Sys-Spade1Mk1",
     "R-Vehicle-Body01",
     "R-Vehicle-Body05",
     "R-Vehicle-Body11",
     "R-Vehicle-Engine01",
     "R-Vehicle-Engine02",
     "R-Vehicle-Engine03",
     "R-Vehicle-Metals01",
     "R-Vehicle-Metals02",
     "R-Vehicle-Metals03",
     "R-Vehicle-Prop-Halftracks",
     "R-Vehicle-Prop-Hover",
     "R-Vehicle-Prop-Tracks",
     "R-Vehicle-Prop-Wheels",
     "R-Wpn-Cannon-Damage01",
     "R-Wpn-Cannon-Damage02",
     "R-Wpn-Cannon-Damage03",
     "R-Wpn-Cannon1Mk1",
     "R-Wpn-Cannon2Mk1",
     "R-Wpn-Cannon3Mk1",
     "R-Wpn-Flamer-Damage01",
     "R-Wpn-Flamer-Damage02",
     "R-Wpn-Flamer-Damage03",
     "R-Wpn-Flamer-ROF01",
     "R-Wpn-Flamer01Mk1",
     "R-Wpn-MG-Damage01",
     "R-Wpn-MG-Damage02",
     "R-Wpn-MG-Damage03",
     "R-Defense-HvyMor",
     "R-Wpn-MG-ROF01",
     "R-Wpn-MG1Mk1",
     "R-Wpn-MG2Mk1",
     "R-Wpn-MG3Mk1",
     "R-Wpn-Mortar-Damage01",
     "R-Wpn-Mortar-Damage02",
     "R-Wpn-Mortar-Damage03",
     "R-Wpn-Mortar01Lt",
     "R-Wpn-Rocket-Damage01",
     "R-Wpn-Rocket-Damage02",
     "R-Wpn-Rocket-Damage03",
     "R-Wpn-Rocket-ROF01",
     "R-Wpn-Rocket-ROF02",
     "R-Wpn-Rocket01-LtAT",
     "R-Wpn-Rocket02-MRL",
     "R-Wpn-Rocket05-MiniPod",
     "R-Vehicle-Body04",
     "R-Vehicle-Body08",
     "R-Wpn-Mortar02Hvy",
     "R-Wpn-AAGun03",
     "R-Sys-Sensor-Tower02",
     "R-Vehicle-Prop-VTOL",
     "R-Struc-VTOLFactory",
     "R-Struc-VTOLPad",
     "R-Wpn-Bomb01",
     "R-Defense-AASite-QuadMg1",
     "R-Comp-CommandTurret02",
];

const TECH_THREE = [
     "R-Defense-HardcreteWall",
     "R-Sys-MobileRepairTurret01",
     "R-Sys-Sensor-Tower01",
     "R-Sys-Sensor-Turret01",
     "R-Sys-Sensor-Upgrade01",
     "R-Sys-Sensor-Upgrade02",
     "R-Vehicle-Body09",
     "R-Vehicle-Prop-VTOL",
     "R-Wpn-Cannon-Accuracy02",
     "R-Wpn-Rocket01-LtAT",
     "R-Wpn-Rocket03-HvAT",
     "R-Wpn-Rocket-Accuracy02",
     "R-Wpn-Rocket-ROF03",
     "R-Comp-CommandTurret01",
     "R-Comp-SynapticLink",
     "R-Cyborg-Metals01",
     "R-Cyborg-Metals02",
     "R-Defense-Pillbox01",
     "R-Defense-Pillbox04",
     "R-Defense-Pillbox05",
     "R-Defense-Pillbox06",
     "R-Defense-TankTrap01",
     "R-Defense-Tower01",
     "R-Defense-Tower06",
     "R-Defense-WallTower02",
     "R-Defense-WallTower03",
     "R-Defense-WallTower04",
     "R-Defense-WallUpgrade01",
     "R-Struc-CommandRelay",
     "R-Struc-Factory-Cyborg",
     "R-Struc-Factory-Module",
     "R-Struc-Factory-Upgrade01",
     "R-Struc-Materials01",
     "R-Struc-Materials02",
     "R-Struc-PowerModuleMk1",
     "R-Struc-RepairFacility",
     "R-Struc-Research-Module",
     "R-Struc-Research-Upgrade01",
     "R-Struc-Research-Upgrade02",
     "R-Struc-RprFac-Upgrade01",
     "R-Sys-Spade1Mk1",
     "R-Vehicle-Body01",
     "R-Vehicle-Body04",
     "R-Vehicle-Body05",
     "R-Vehicle-Body08",
     "R-Vehicle-Body11",
     "R-Vehicle-Body12",
     "R-Vehicle-Engine01",
     "R-Vehicle-Engine02",
     "R-Vehicle-Metals01",
     "R-Vehicle-Metals02",
     "R-Vehicle-Prop-Halftracks",
     "R-Vehicle-Prop-Hover",
     "R-Vehicle-Prop-Tracks",
     "R-Vehicle-Prop-Wheels",
     "R-Wpn-Cannon1Mk1",
     "R-Wpn-Cannon2Mk1",
     "R-Wpn-Cannon3Mk1",
     "R-Wpn-Cannon-Damage01",
     "R-Wpn-Cannon-Damage02",
     "R-Wpn-Flamer01Mk1",
     "R-Wpn-Flamer-Damage01",
     "R-Wpn-MG1Mk1",
     "R-Wpn-MG-Damage01",
     "R-Wpn-MG-Damage02",
     "R-Wpn-MG-Damage03",
     "R-Wpn-Mortar01Lt",
     "R-Wpn-Mortar-Damage01",
     "R-Wpn-Mortar-Damage02",
     "R-Wpn-Rocket05-MiniPod",
     "R-Wpn-Rocket-Accuracy01",
     "R-Wpn-Rocket-Damage01",
     "R-Wpn-Rocket-Damage02",
     "R-Wpn-Rocket-ROF01",
     "R-Wpn-RocketSlow-Accuracy01",
     "R-Cyborg-Metals03",
     "R-Defense-MortarPit",
     "R-Defense-MRL",
     "R-Defense-WallTower01",
     "R-Defense-WallTower06",
     "R-Defense-WallUpgrade02",
     "R-Defense-WallUpgrade03",
     "R-Struc-Materials03",
     "R-Struc-Research-Upgrade03",
     "R-Sys-Engineering01",
     "R-Vehicle-Engine03",
     "R-Vehicle-Metals03",
     "R-Wpn-AAGun03",
     "R-Wpn-Cannon-Accuracy01",
     "R-Wpn-Cannon-Damage03",
     "R-Wpn-Flamer-Damage02",
     "R-Wpn-Flamer-Damage03",
     "R-Wpn-Flamer-ROF01",
     "R-Wpn-MG2Mk1",
     "R-Wpn-MG3Mk1",
     "R-Wpn-MG-ROF01",
     "R-Wpn-Mortar02Hvy",
     "R-Wpn-Mortar-Acc01",
     "R-Wpn-Mortar-Damage03",
     "R-Wpn-Mortar-ROF01",
     "R-Wpn-Rocket02-MRL",
     "R-Wpn-Rocket-Damage03",
     "R-Wpn-Rocket-ROF02",
     "R-Wpn-RocketSlow-Accuracy02",
     "R-Cyborg-Armor-Heat01",
     "R-Cyborg-Metals04",
     "R-Cyborg-Metals05",
     "R-Defense-AASite-QuadBof",
     "R-Defense-AASite-QuadMg1",
     "R-Defense-AASite-QuadRotMg",
     "R-Defense-Emplacement-HPVcannon",
     "R-Defense-Howitzer",
     "R-Defense-HvyHowitzer",
     "R-Defense-HvyMor",
     "R-Defense-IDFRocket",
     "R-Defense-RotMG",
     "R-Defense-RotMor",
     "R-Defense-Wall-RotMg",
     "R-Defense-WallUpgrade04",
     "R-Defense-WallUpgrade05",
     "R-Defense-Wall-VulcanCan",
     "R-Struc-Factory-Upgrade04",
     "R-Struc-Materials04",
     "R-Struc-Materials05",
     "R-Struc-Research-Upgrade04",
     "R-Struc-Research-Upgrade05",
     "R-Struc-RprFac-Upgrade04",
     "R-Struc-VTOLFactory",
     "R-Struc-VTOLPad",
     "R-Struc-VTOLPad-Upgrade01",
     "R-Struc-VTOLPad-Upgrade02",
     "R-Sys-Sensor-Tower02",
     "R-Sys-VTOLCBS-Turret01",
     "R-Vehicle-Armor-Heat01",
     "R-Vehicle-Body02",
     "R-Vehicle-Body06",
     "R-Vehicle-Engine04",
     "R-Vehicle-Engine05",
     "R-Vehicle-Metals04",
     "R-Vehicle-Metals05",
     "R-Wpn-AAGun02",
     "R-Wpn-AAGun04",
     "R-Wpn-AAGun-Accuracy01",
     "R-Wpn-AAGun-Damage01",
     "R-Wpn-AAGun-Damage02",
     "R-Wpn-AAGun-ROF01",
     "R-Wpn-AAGun-ROF02",
     "R-Wpn-Bomb01",
     "R-Wpn-Bomb02",
     "R-Wpn-Bomb-Accuracy01",
     "R-Wpn-Cannon4AMk1",
     "R-Wpn-Cannon5",
     "R-Wpn-Cannon-Damage04",
     "R-Wpn-Cannon-Damage05",
     "R-Wpn-Cannon-ROF01",
     "R-Wpn-Cannon-ROF02",
     "R-Wpn-Flame2",
     "R-Wpn-Flamer-Damage04",
     "R-Wpn-Flamer-ROF02",
     "R-Wpn-Howitzer-Accuracy01",
     "R-Wpn-Howitzer-Damage01",
     "R-Wpn-Howitzer-Damage02",
     "R-Wpn-HowitzerMk1",
     "R-Wpn-Howitzer-ROF01",
     "R-Wpn-Howitzer-ROF02",
     "R-Wpn-HvyHowitzer",
     "R-Wpn-MG-ROF02",
     "R-Wpn-Mortar3",
     "R-Wpn-Mortar-Damage04",
     "R-Wpn-Mortar-Damage05",
     "R-Wpn-Mortar-ROF02",
     "R-Wpn-Rocket06-IDF",
     "R-Wpn-Rocket-Damage04",
     "R-Wpn-Rocket-Damage05",
     "R-Cyborg-Armor-Heat02",
     "R-Cyborg-Armor-Heat03",
     "R-Cyborg-Metals06",
     "R-Defense-WallTower-HPVcannon",
     "R-Defense-WallUpgrade06",
     "R-Struc-Materials06",
     "R-Struc-Power-Upgrade01",
     "R-Struc-Power-Upgrade01b",
     "R-Struc-Power-Upgrade01c",
     "R-Struc-Research-Upgrade06",
     "R-Struc-RprFac-Upgrade06",
     "R-Struc-VTOLPad-Upgrade03",
     "R-Sys-CBSensor-Tower01",
     "R-Sys-CBSensor-Turret01",
     "R-Sys-Engineering02",
     "R-Sys-VTOLCBS-Tower01",
     "R-Sys-VTOLStrike-Tower01",
     "R-Sys-VTOLStrike-Turret01",
     "R-Vehicle-Armor-Heat02",
     "R-Vehicle-Armor-Heat03",
     "R-Vehicle-Engine06",
     "R-Vehicle-Metals06",
     "R-Wpn-AAGun-Accuracy02",
     "R-Wpn-AAGun-Damage03",
     "R-Wpn-AAGun-ROF03",
     "R-Wpn-Bomb03",
     "R-Wpn-Bomb-Accuracy02",
     "R-Wpn-Cannon-Damage06",
     "R-Wpn-Cannon-ROF03",
     "R-Wpn-Flamer-Damage05",
     "R-Wpn-Flamer-Damage06",
     "R-Wpn-Flamer-ROF03",
     "R-Wpn-Howitzer03-Rot",
     "R-Wpn-Howitzer-Accuracy02",
     "R-Wpn-Howitzer-Damage03",
     "R-Wpn-Howitzer-ROF03",
     "R-Wpn-MG4",
     "R-Wpn-MG-ROF03",
     "R-Wpn-Mortar-Acc02",
     "R-Wpn-Mortar-Damage06",
     "R-Wpn-Mortar-ROF03",
     "R-Wpn-Rocket07-Tank-Killer",
     "R-Wpn-Rocket-Damage06",
     "R-Defense-HvyFlamer",
     "R-Cyborg-Transport",
     "R-Sys-MobileRepairTurretHvy",
     "R-Defense-Cannon6",
     "R-Wpn-Cannon6TwinAslt",
     "R-Cyborg-Hvywpn-Acannon",
     "R-Cyborg-Hvywpn-HPV",
     "R-Cyborg-Hvywpn-Mcannon",
     "R-Cyborg-Hvywpn-TK",
     "R-Defense-Super-Rocket",
     "R-Defense-Super-Cannon",
     "R-Defense-WallTower-QuadRotAA",
     "R-Defense-WallTower-DoubleAAgun",
     "R-Comp-CommandTurret02",
];

//Automatically research these items for the player.
function grantTech(tech)
{
     var len = tech.length;
     for (var c = 0; c < maxPlayers; ++c)
     {
          for (var i = 0; i < len; ++i)
          {
               completeResearch(tech[i], c);
          }
     }
}

//Makes these items available for research.
function enableTech(tech)
{
     var len = tech.length;
     for (var c = 0; c < maxPlayers; ++c)
     {
          for (var i = 0; i < len; ++i)
          {
               enableResearch(tech[i], c);
          }
     }
}
