var i = 0;
var t = 0;


var className = "spy";

tree[i] = "spy"; i++;
tree[i] = "covertoperative"; i++;
tree[i] = "beastmastery"; i++;  

i = 0;
//spy  talents

talent[i] = [0, "Improved Spy's Fang", 1, 1, 1]; i++; 
talent[i] = [0, "Concealed Weapon", 1, 2, 1]; i++;
talent[i] = [0, "Hidden Daggers", 1, 3, 1]; i++;
talent[i] = [0, "Improved First Aid", 2, 4, 1]; i++;
talent[i] = [0, "Cloaked Recovery", 1, 5, 1,[getTalentID("Improved First Aid"),2]]; i++; 
talent[i] = [0, "Protective Armor", 4, 7, 1]; i++;


talent[i] = [0, "Improved Arachne's Web", 1, 2, 2]; i++;
talent[i] = [0, "Run its Course", 1, 4, 2,[getTalentID("Improved First Aid"),2]]; i++;
talent[i] = [0, "Noxious Traps", 2, 5, 2]; i++;
talent[i] = [0, "Cloaking Armor", 3, 6, 2]; i++;

talent[i] = [0, "Opportunity", 4, 1, 3]; i++;
talent[i] = [0, "Precision", 4, 2, 3]; i++;
talent[i] = [0, "Strength", 4, 3, 3]; i++;
talent[i] = [0, "Agility", 4, 6, 3]; i++;
talent[i] = [0, "Balanced Armor", 2, 7, 3,[getTalentID("Protective Armor"),4]]; i++;


talent[i] = [0, "Sniping", 3, 2, 4, [getTalentID("Precision"),4]]; i++;
talent[i] = [0, "Close Quarters", 3, 4, 4,[getTalentID("Strength"),4]]; i++;
talent[i] = [0, "Deadly Toxins", 2, 5, 4,[getTalentID("Noxious Traps"),2]]; i++;

talent[i] = [0, "Cheap Shots", 4, 1, 5,[getTalentID("Opportunity"),4]]; i++;
talent[i] = [0, "Cheap Strikes", 4, 3, 5,[getTalentID("Strength"),4]]; i++;
talent[i] = [0, "Crippling Traps", 2, 5, 5,[getTalentID("Deadly Toxins"),2]]; i++;
talent[i] = [0, "Avoid Damage", 1, 6, 5,[getTalentID("Agility"),4]]; i++;


treeStartStop[t] = i -1;
t++;

//covertoperative  talents

talent[i] = [1, "Quiet Steps", 2, 1, 1]; i++;
talent[i] = [1, "Rapid Concealment", 4, 2, 1]; i++;
talent[i] = [1, "Careful Observation", 2, 3, 1]; i++;
talent[i] = [1, "Cloaked Attacks", 1, 6, 1]; i++;

talent[i] = [1, "Smoke Screen", 4, 2, 2,[getTalentID("Rapid Concealment"),4]]; i++;
talent[i] = [1, "Reveal Shadows", 1, 3, 2,[getTalentID("Careful Observation"),2]]; i++;
talent[i] = [1, "Decoy", 1, 4, 2]; i++;
talent[i] = [1, "Cloak and Dagger", 4, 7, 2,[getTalentID("Cloaked Attacks"),1]]; i++;

talent[i] = [1, "Burst of Shadows", 1, 2, 3,[getTalentID("Smoke Screen"),4]]; i++;
talent[i] = [1, "Expose Shadows", 4, 3, 3,[getTalentID("Reveal Shadows"),1]]; i++;
talent[i] = [1, "Puncturing Strikes", 4, 5, 3]; i++;
talent[i] = [1, "Setup", 4, 6, 3,[getTalentID("Cloaked Attacks"),1]]; i++;

talent[i] = [1, "Without a Trace", 1, 1, 4,[getTalentID("Burst of Shadows"),1]]; i++;
talent[i] = [1, "Shadow's Embrace", 4, 2, 4,[getTalentID("Burst of Shadows"),1]]; i++;
talent[i] = [1, "Undercover", 3, 3, 4]; i++;
talent[i] = [1, "Initiative", 4, 7, 4,[getTalentID("Cloak and Dagger"),4]]; i++;



talent[i] = [1, "Covert Mastery", 4, 2, 5,[getTalentID("Shadow's Embrace"),4]]; i++;
talent[i] = [1, "Diversion", 2, 4, 5,[getTalentID("Decoy"),1]]; i++;
talent[i] = [1, "Preparation", 1, 7, 5,[getTalentID("Initiative"),4]]; i++;

treeStartStop[t] = i -1;
t++;


/* updated for beastmastery */
//BEAST  talents
talent[i] = [2, "Enhanced Skill Acquisition", 4, 1, 1,[42,1]]; i++;
talent[i] = [2, "Creature Knowledge", 1, 2, 1,[43,1]]; i++;
talent[i] = [2, "Attack!", 1, 3, 1,[44,1]]; i++;
talent[i] = [2, "Incubation", 1, 4, 1]; i++;

talent[i] = [2, "Beast Empathy", 3, 5, 1,[getTalentID("Incubation"),1]]; i++;
talent[i] = [2, "Stupid Pet Tricks", 1, 6, 1,[getTalentID("Beast Empathy"),3]]; i++;
talent[i] = [2, "Create Mount", 1, 7, 1,[getTalentID("Stupid Pet Tricks"),1]]; i++;
talent[i] = [2, "Soothing Comfort", 1, 1, 2,[getTalentID("Enhanced Skill Acquisition"),4]]; i++;
talent[i] = [2, "Swift Recovery", 1, 2, 2,[getTalentID("Soothing Comfort"),1]]; i++;
talent[i] = [2, "Mending", 1, 3, 2,[getTalentID("Swift Recovery"),1]]; i++;
talent[i] = [2, "Additional Combat Command", 1, 4, 2,[getTalentID("Mending"),1]]; i++;
talent[i] = [2, "Incubation Quality", 3, 5, 2,[getTalentID("Beast Empathy"),3]]; i++;
talent[i] = [2, "Incubation Processing Time", 3, 7, 2,[getTalentID("Create Mount"),1]]; i++;
talent[i] = [2, "Exceptional Nutrition", 2, 1, 3,[getTalentID("Soothing Comfort"),1]]; i++;
talent[i] = [2, "Improved Pet Recovery", 1, 2, 3,[getTalentID("Exceptional Nutrition"),2]]; i++;
talent[i] = [2, "Additional Combat Command", 1, 3, 3,[getTalentID("Improved Pet Recovery"),1]]; i++;
talent[i] = [2, "Genetic Engineering", 3, 5, 3,[getTalentID("Incubation Quality"),3]]; i++;
talent[i] = [2, "DNA Harvesting", 3,6, 3,[getTalentID("Stupid Pet Tricks"),1]]; i++;
talent[i] = [2, "Dexterity Training", 2, 1, 4,[getTalentID("Exceptional Nutrition"),2]]; i++;
talent[i] = [2, "Specialized Supplements", 1, 2, 4,[getTalentID("Dexterity Training"),2]]; i++;
talent[i] = [2, "Additional Combat Command", 1, 3, 4,[getTalentID("Specialized Supplements"),1]]; i++;
talent[i] = [2, "Fortitude", 3, 1, 5,[getTalentID("Dexterity Training"),2]]; i++;
talent[i] = [2, "Savagery", 3, 2, 5,[getTalentID("Fortitude"),3]]; i++;
talent[i] = [2, "Harmonious Understanding", 3, 3, 5,[getTalentID("Savagery"),3]]; i++;


treeStartStop[t] = i -1;
t++;




i = 0;

//spy Talents Begin

//Improved Spy's Fang  - spy
rank[i] = [
			"Grants a full line to the Spy's Fang ability."
		  ];
i++;		

//Concealed Weapon  - spy
rank[i] = [
			"Grants the Blaster Burst ranged line of attacks."
		  ];
i++;	
		
//Hidden Daggers - spy
rank[i] = [
"Grants the Razor Slash melee line of attacks."
		];
i++;		

//Improved First Aid - spy
rank[i] = [
"Increases the amount healed by all spy heals by 10% per point."
		];
i++;		
		
//Cloaked Recovery - spy
rank[i] = [
"Grants the Cloaked Recovery line of self heals useable only while stealthed."
		];
i++;		

//Protective Armor  - spy
rank[i] = [
"+300 Kinetic resist per point."
		];
i++;		

//Improved Arachne's Web - spy
rank[i] = [
"Grants a full line to the Arachne's Web ability."
		];
i++;		
		
//Run its Course - spy
rank[i] = [
"Grants the Run its Course ability. Purges all poison DOTs but does 20% of the remaining poison damage instantly."
		];		
i++;		


//Noxious Traps - spy
rank[i] = [ 
"+15% poison damage to Venomous Ploy trap line per point."
		];
i++;		


//Cloaking Armor - spy 
rank[i] = [
"Grants +25 Camouflage per point."
		];
i++;		

//Opportunity - spy
rank[i] = [
"Increases chance to get a critical hit by 1% per point."
		];
i++;		

//Precision - spy
rank[i] = [
"+15 precision per point."
		];
i++;		

//Increased Strength - spy  
rank[i] = [
"+15 strength per point."
		];
i++;		

//Increased Agility - spy
rank[i] = [
"+15 agility per point."
		];
i++;		

//Glancing Armor - spy
rank[i] = [
"Balanced armor grants the user +2%/+5% chance to dodge direct target attacks."
		];		
i++;		

//Snipping - spy  			
rank[i] = [
"Increases damage done by all ranged weapons by 2% per point."
		];
i++;		


//Close Quarters - spy
rank[i] = [
"Increases damage done by melee weapons by 2% per point."
		];
i++;

//Deadly Toxins - spy
rank[i] = [
"+10% chance to get a critical on Venomous Ploy line of traps per point."
		];
i++;

//Cheap Shots - spy
rank[i] = [
"5% reduction in action costs using carbines per point."
		];
i++;


//Cheap Strikes - spy
rank[i] = [
"5% reduction in action costs using melee weapons per point."
		];
i++;

//Crippling Traps - spy
rank[i] = [
"+50% per point chance for Venomous Ploy line of traps to apply a snare when they activate."
		];
i++;



//Avoid Damage - spy
rank[i] = [
"Grants the Avoid Damage ability. When activated +50% chance to dodge for 15 seconds."
		];
i++;






//covertoperative Begin
//Quiet Steps - covertoperative
rank[i] = [
"Enemies have a -2%/-5% chance to block,dodge and parry attacks made out of stealth."
		];
i++;

//Rapid Concealment- covertoperative
rank[i] = [
"Reduces the cooldown of the Smoke Bomb and Without a Trace abilities 30 sec per point."
		];
i++;

//Careful Observation - covertoperative
rank[i] = [
"Buff detect hidden +25 per point."
		];
i++;		

//Cloaked Attacks - covertoperative
rank[i] = [
"Grants the Ambush (melee) and Snipe (ranged) high damage attack lines made from stealth."
		];
i++;		

//Smoke Screen - covertoperative 
rank[i] = [
"Decreases the snare movement penalty of smoke bombs 10% per point."
		];		
i++;		

//Reveal Shadows - covertoperative
rank[i] = [
"Grants the ability to reveal shadows. This ability allows the spy a good chance to reveal hidden targets within a 20m radius."
		];
i++;		

//Decoy - covertoperative 
rank[i] = [
"Creates a decoy that will draw attacks away from the spy."
		];
i++;		

//Cloak and Dagger - covertoperative  
rank[i] = [
"Increases the damage from Ambush and Snipe lines of attacks by 20% per point."
		];
i++;		

//Burst of Shadows - covertoperative 
rank[i] = [
"This ability overrides the smoke bomb or sneak snare and allows faster movement while stealthed for 15 sec."
		];
i++;		

//Expose Shadows - covertoperative  
rank[i] = [
"Radius increased by 5m per point, cooldown decreased 10 sec per point, chance to detect increased 3% per point."
		];
i++;				

//Puncturing Strikes - covertoperative 
rank[i] = [
"Increases the damage from the Ambush and Razor slash melee lines of attacks by 10% per point."
		];
i++;		
		
//Setup - covertoperative 
rank[i] = [
"Ambush and Snipe lines action cost reduced by 5% action per point."
		];
i++;		


//Without a Trace - covertoperative
rank[i]=[
"Improved smoke bomb - makes the spy undetectable by any means other than damage for 30 seconds."
		];
i++;	

//Shadow's Embrace - covertoperative 
rank[i] = [
		"Burst of Shadows - duration increased by 2 sec per point. Cooldown decreased by 30 sec per point."
		];
i++;		
		
//Undercover - covertoperative 

rank[i] = [
"Reduces the snare of smoke bombs by 5% per point and sneaking by 20% per point."
		];
i++;
	
//Initiative - covertoperative
rank[i]=[
"Ambush and Snipe lines gain a 15% per point chance of being a critical hit."
		];
i++;		
		
		
//Covert Mastery - covertoperative
rank[i]=[
"Single target direct attacks that fail to hit their target (Miss, Dodge, Parry) cost 0 action."
		];
i++;		
		
//Diversion - covertoperative
rank[i]=[
"Rank 1: Applies a flanking debuff to targets that attack the decoy. <br> Rank 2: Places the Spy into stealth."	];
i++;		

//Preparation - covertoperative
rank[i]=[
"Increases all weapon damage done by 30% and all single target direct attack critical and strikethrough hits will cost 0 action for 6 seconds."
	];
i++;		

// covertoperative Talents End^^

/* updated for beastmastery */
//beastmaster Talents Begin

//Enhanced Skill Acquisition - beastmaster
rank[i] = [
"This skill improves your chance to learn abilities that you may use to train your pet."
		];
i++;

//Creature Knowledge- beastmaster
rank[i] = [
"Enables you to gather detailed knowledge about a creature."
		];
i++;

//Attack! - beastmaster
rank[i] = [
"You may command a beast under your control to attack anything you are able to attack yourself."
		];
i++;		

//Incubation - beastmaster
rank[i] = [
"Allows you to use an Incubator to bio-engineer new beasts. You will also receive the \"Revive Beast\" command."
		];
i++;		

//Beast Empathy - beastmaster 
rank[i] = [
"Improves your ability to keep your beasts happy."
		];		
i++;		

//Stupid Pet Tricks - beastmaster
rank[i] = [
"Beasts under your control will do tricks at your command."
		];
i++;		

//Create Mount - beastmaster 
rank[i] = [
"Allows you to make an incubated egg into a mount."
		];
i++;		

//Soothing Comfort - beastmaster  
rank[i] = [
"Removes a harmful effect, state or damage over time effect from your beast."
		];
i++;		

//Swift Recovery - beastmaster 
rank[i] = [
"Reduces the amount of time it takes to revive your beast from incapacitation."
		];
i++;		

//Mending - beastmaster  
rank[i] = [
"Restores health to your injured beast."
		];
i++;				

//Additional Combat Command - beastmaster 
rank[i] = [
"You may teach your beast an additional combat command."
		];
i++;		
		
//Incubation Quality - beastmaster 
rank[i] = [
"Can provide up to 20% bonus to your enzyme qualities during incubation."
		];
i++;		

//Incubation Processing Time - beastmaster 
rank[i] = [
		"Reduces the time required to incubate and hatch a beast. Will reduce the time by 2,5 and 8 hours for every point spent."
		];
i++;		
		
//Exceptional Nutrition - beastmaster 

rank[i] = [
"Increases the Health of all beasts under your control by up to 100%."
		];
i++;
	
//Improved Pet Recovery - beastmaster
rank[i]=[
"Increases the amount of health your beast receives when you revive it from incapacitation."
		];
i++;		
		
//Additional Combat Command - beastmaster
rank[i]=[
"You may teach your beast an additional combat command."
		];
i++;		
		
//Genetic Engineering - beastmaster
rank[i]=[
"Grants a bonus to Genetic Engineering."
		];
i++;		
		

//DNA Harvesting - beastmaster
rank[i]=[
"A bonus to DNA Harvesting. Every 10 points gives you a 5% bonus to minimum quality from DNA extraction."
	];
i++;		
		
//Dexterity Training - beastmaster 
rank[i]=[
"Increase the attack speed of beasts under your control by up to 100%."
		];
i++;		
	
//Specialized Supplements - beastmaster
rank[i]=[
"Increase the Health and Action regeneration rate of your beast by up to 100%."
		];
i++;	

//Additional Combat Command - beastmaster
rank[i]=[
"You may teach your beast an additional combat command."
	];
i++;		
		
//Fortitude - beastmaster 
rank[i]=[
"Increase the armor of beasts under your control by 100%."
		];
i++;		
	
//Savagery  - beastmaster
rank[i]=[
"Increase the damage caused by beasts under your control by 100%."
		];
i++;	


//Harmonious Understanding  - beastmaster
rank[i]=[
"You and your beast are able to anticipate each other's needs. Reduces your penalty when controlling a beast."
		];
i++;	

//beastmaster Talents End^^















i=0;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;


/* updated for beastmastery */
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
StateArray[i]=[0];i++;
/* updated for beastmastery */













i = 0;
t = 0;
var nlclass = "spy";

nltree[i] = "spy"; i++;
nltree[i] = "covertoperative"; i++;
nltree[i] = "Beast Mastery"; i++;

i = 0;
//spy
//The last parameter for checking default
nltalent[i] = ["Improved Spy's Fang|Spy's Fang 1","s","Spy's Fang 1: This level 10 ability allows the spy to cause extra acid damage over time to the target.","--","--","--","--",1]; i++;

nltalent[i] = ["Concealed Weapon|Blaster Burst 1","s","Blaster Burst 1: A powerful level 10 ranged attack that causes a large increase in damage.","--","--","--","--",1]; i++;

nltalent[i] = ["Hidden Daggers|Razor Slash 1","s","Razor Slash 1: A powerful level 10 melee attack that causes a large increase in damage.","--","--","--","--",1]; i++;
nltalent[i] = ["Improved First Aid","m","Spy Healing|Modifies amount healed.",10,20,"--","--",1,"Cloaked Heal Bonus|",10,20,"--","--"]; i++;
nltalent[i] = ["Cloaked Recovery|Cloaked Recovery 1","s","Cloaked Recovery 1: A level 10 healing ability used to recover a small amount of health while stealthed.","--","--","--","--",0]; i++; 
nltalent[i] = ["Protective Armor","m","Kinetic Protection|Modifies Kinetic Protection.",300,600,900,1200,1]; i++;

nltalent[i] = ["Improved Arachne's Web|Arachne's Web 1","s","Arachne's Web 1: This level 10 attack applies poison damage and slows the movement speed of the target.","--","--","--","--",0]; i++;
nltalent[i] = ["Run its Course|Run its Course","s","Run its Course: This level 10 ability removes all poison DOT effects from the spy but applies 20% of the remaining DOT damage instantly.","--","--","--","--",0]; i++;
nltalent[i] = ["Noxious Traps","m","Trap Poison Damage|Modifies poison trap damage.",15,30,"--","--",0]; i++;
nltalent[i] = ["Cloaking Armor","m","Camouflage|Modifies camouflage.",25,50,75,"--",0]; i++;


nltalent[i] = ["Opportunity","m","Critical Chance Increase|Modifies critical damage chance.",1,2,3,4,0]; i++;
nltalent[i] = ["Precision","m","Precision|Modifies Precision.","15","30","45","60",0]; i++;
nltalent[i] = ["Increased Strength","m","Strength|Modifies Strength","15","30","45","60",0]; i++;
nltalent[i] = ["Increased Agility","m","Agility|Modifies Agility.","15","30","45","60",0]; i++;
nltalent[i] = ["Balanced Armor","m","DODGE|",2,5,"--","--",0]; i++;


nltalent[i] = ["Sniping","m","Ranged Damage Increase|Modifies damage.",2,4,6,"--",0]; i++;
nltalent[i] = ["Close Quarters","m","Melee Damage Increase|Modifies damage.",2,4,6,"--",0]; i++;
nltalent[i] = ["Deadly Toxins","m","Trap Critical Chance|Modifies poison trap critical chance.",10,20,"--","--",0]; i++;




nltalent[i] = ["Cheap Shots","m","Carbine Action Cost|Modifies action cost when using carbines.",5,10,15,20,0]; i++;
nltalent[i] = ["Cheap Strikes","m","Razor Slash Action Cost|Modifies action cost when using melee weapons.",5,10,15,20,0,"Ambush Action Cost|",5,10,15,20]; i++;
nltalent[i] = ["Crippling Traps","m","Cripple Trap Proc Chance|Modifies poison trap snare effect chance.",50,100,"--","--",0]; i++;
nltalent[i] = ["Avoid Damage|Avoid Damage","s","Avoid Damage: This level 34 ability grants the spy an increased chance to dodge direct target attacks for 15 seconds.","--","--","--","--",0]; i++;



treeStartStop[t] = i -1;
t++;

//covertoperative

nltalent[i] = ["Quiet Steps","m","INDEFENSIBLE ATTACKS|",2,5,"--","--",1]; i++;
nltalent[i] = ["Rapid Concealment","m","Smoke Bomb Cooldown|Cooldown reduced in seconds.",30,60,90,120,1,"Without a Trace|",30,60,90,120]; i++;
nltalent[i] = ["Careful Observation","m","Detect Camouflage|Modifies detect hidden.",25,50,"--","--",1]; i++;
nltalent[i] = ["Cloaked Attacks|Ambush 1","s","Ambush 1: A powerful level 10 melee attack from stealth that causes a very large increase in damage and applies a bleed to the target.","--","--","--","--",1]; i++;


nltalent[i] = ["Smoke Screen","m","Smoke Bomb Movement|Snare movement penalty reduction.",10,20,30,40,0]; i++;
nltalent[i] = ["Reveal Shadows|Reveal Shadows","s","Reveal Shadows: This level 10 ability will attempt to reveal all hidden targets in the vicinity of the spy.","--","--","--","--",0]; i++;
nltalent[i] = ["Decoy|Decoy","s","Decoy: This level 10 ability creates a decoy that will draw attacks away from the Spy.","--","--","--","--",0]; i++;
nltalent[i] = ["Cloak and Dagger","m","Ambush Damage/Bleed|Modifies damage",20,40,60,80,0,"Snipe Damage Increase|Modifies damage",20,40,60,80]; i++;

nltalent[i] = ["Burst of Shadows|Burst of Shadows","s","Burst of Shadows: This level 18 ability greatly increases the spy's movement speed for a short period while stealthed.","--","--","--","--",0]; i++;
nltalent[i] = ["Expose Shadows","m","Reveal Shadows|",5,10,15,20,0,"Reveal Shadows|",3,6,9,12,"Reveal Shadows|",10,20,30,40]; i++;
nltalent[i] = ["Puncturing Strikes","m","Ambush Damage/Bleed|",10,20,30,40,0,"Razor Slash/Blaster Burst Damage|",10,20,30,40,"SNIPE DAMAGE INCREASE|",10,20,30,40]; i++;
nltalent[i] = ["Setup","m","Ambush Action Cost|Action cost reduction percentage.",5,10,15,20,0,"Snipe Action Cost|Action cost reduction percentage.",5,10,15,20]; i++;

nltalent[i] = ["Without a Trace|Without a Trace","s","Without a Trace: This level 34 improved smoke bomb can allow the spy to escape from combat and hide from enemy detection for a short time.","--","--","--","--",0]; i++;
nltalent[i] = ["Shadow's Embrace","m","Burst of Shadows|Duration increase",2,4,6,8,0,"Burst of Shadows|Cooldown reduction",30,60,90,120]; i++;
nltalent[i] = ["Undercover","m","Smoke Bomb Movement|Smoke Bomb movement increase",5,10,15,"--",0,"Sneak Movement|Sneak increase",20,40,60,"--"]; i++;
nltalent[i] = ["Initiative","m","Ambush Critical Chance|Ambush critical hit chance increase.",15,30,45,60,0,"Snipe Critical Chance|Snipe critical hit chance increase.",15,30,45,60]; i++;


nltalent[i] = ["Covert Mastery","m","Freeshot Case: Miss|",1,"--","--","--",0,"Freeshot Case: Dodge|",1,"--","--","--", "Freeshot Case: Parry|",1,"--","--","--"]; i++;
nltalent[i] = ["Diversion","m","Improved Decoy|","1","2","--","--",0]; i++;
nltalent[i] = ["Preparation|Preparation","s","Preparation: This level 34 ability grants a short damage increase buff for a burst of damage output.","--","--","--","--",0]; i++;



treeStartStop[t] = i -1;
t++;

//Beast
/* updated for beastmastery */
//Beastmaster

nltalent[i] = ["Enhanced Skill Acquisition","m","Ability Acquisition Bonus|Increase you chance to learn abilities through creature knowledge.",3,7,11,15,0]; i++;
nltalent[i] = ["Creature Knowledge|Creature knowledge","s","Creature knowledge: Enables you to gather detailed knowledge about a creature. This ability is used to attempt to learn an ability a creature is using against you as well as to observe an ability the creature is using on themselves that you may later teach to your Beast Master pets.","--","--","--","--",0]; i++;
nltalent[i] = ["Attack|Attack!","s","Attack: Order your beast to attack any target you are able to attack yourself.","--","--","--","--",0]; i++;
nltalent[i] = ["Incubation|Extract DNA","s","Extract DNA: Ability used by Beast Masters to extract DNA of creatures. The DNA is stored in containers to keep the sample viable.","--","--","--","--",1]; i++;
nltalent[i] = ["Beast Empathy","m","Beast Happiness|Improves Beast Happiness.",5,10,15,"--",0]; i++;
nltalent[i] = ["Stupid Pet Tricks|Trick 1","s","Trick 1: Asks your beast to perform a trick.","--","--","--","--",0]; i++;
nltalent[i] = ["Create Mount","m","Create Mount|Turn a creature egg into a mount",100,"--","--","--",0]; i++;
nltalent[i] = ["Soothing Comfort|Soothing Comfort","s","Soothing Comfort: Removes a harmful state, effect or damage over time effect from your beast.","--","--","--","--",0]; i++;
nltalent[i] = ["Swift Recovery","m","Beast Revive Speed|Decrease the time it takes to revive your pet.",10,"--","--","--",0]; i++;
nltalent[i] = ["Mending|Heal Beast (Mark 1)","s","Heal Beast (Mark 1): Restores some of your beast's health.","--","--","--","--",0]; i++;
nltalent[i] = ["Additional Combat Command","m","Additional Combat Command|You beast can learn one additional combat command.",1,"--","--","--",0]; i++;
nltalent[i] = ["Incubation Quality","m","Incubation Quality|Increases enzyme quality during incubation.",5,10,20,"--",0]; i++;
nltalent[i] = ["Incubation Processing Time","m","Incubation Processing Time|Incubation processing time reduction",2,5,8,"--",0]; i++;
nltalent[i] = ["Exceptional Nutrition","m","Beast Hitpoint Percent|Increase the hitpoints of your beast.",50,100,"--","--",0]; i++;
nltalent[i] = ["Improved Pet Recovery","m","Beast Recovery Percent|Increase the amount of health you pet will have when revived.",50,"--","--","--",0]; i++;
nltalent[i] = ["Additional Combat Command","m","Additional Combat Command|You beast can learn one additional combat command.",1,"--","--","--",0]; i++;
nltalent[i] = ["Genetic Engineering","m","Genetic Engineering|Genetic Engineering.",30,60,100,"--",0]; i++;
nltalent[i] = ["DNA Harvesting","m","DNA Quality|Increases the minimum quality from extraction.",30,60,100,"--",0]; i++;
nltalent[i] = ["Dexterity Training","m","Beast Attack Speed Percent|Increase the attack speed of your beast.",50,100,"--","--",0]; i++;
nltalent[i] = ["Specialized Supplements","m","Beast Regeneration Rate|Increase the regeneration rate of your beast",100,"--","--","--",0]; i++;
nltalent[i] = ["Additional Combat Command","m","Additional Combat Command|You beast can learn one additional combat command.",1,"--","--","--",0]; i++;
nltalent[i] = ["Fortitude","m","Beast Armor Percent|Increase the armor value of your beast.",30,60,100,"--",0]; i++;
nltalent[i] = ["Savagery","m","Beast Damage Percent|Increase the damage value of your beast.",30,60,100,"--",0]; i++;
nltalent[i] = ["Harmonious Understanding","m","Attention Penalty Reduction|Reduces your penalty when controlling a beast.",5,15,25,"--",0]; i++;

/* updated for beastmastery */


treeStartStop[t] = i -1;
t++;














var textLevelRequired = "Level Required";
var textPointsLeft = "Points Left";
var textPointsSpent = "Points Spent";
var textPoint = "point";
var textPoints = "points";

var textToSave = "Direct Link URL - Right-click and copy the URL to share your build with friends:";

 var theURLtoCopy = "http://starwarsgalaxies.station.sony.com/expertisecalculators/main/"+ className +"/index.vm?section=";
 // var theURLtoCopy = "http://devnet.etisbew.net/soe2/"+ className +"/index.vm?section=";

