var i = 0;
var t = 0;


var className = "smuggler";

tree[i] = "scoundrel"; i++;
tree[i] = "smuggler"; i++;
tree[i] = "beastmastery"; i++;  



i = 0;






//Scoundrel   talents
talent[i] = [0, "Enhanced Precision", 2, 2, 1]; i++;
talent[i] = [0, "Hidden Padding", 2, 3, 1]; i++;
talent[i] = [0, "Gun Oil", 1, 4, 1]; i++;
talent[i] = [0, "Elbow Grease", 1, 5, 1]; i++;
talent[i] = [0, "Enhanced Luck", 2, 6, 1]; i++;
talent[i] = [0, "Spot A Sucker", 1, 2, 2]; i++;
talent[i] = [0, "Hair Trigger", 4, 4, 2,[getTalentID("Gun Oil"),1]]; i++;
talent[i] = [0, "Switcheroo", 4, 5, 2,[getTalentID("Elbow Grease"),1]]; i++;
talent[i] = [0, "Off The Cuff", 1, 6, 2]; i++;
talent[i] = [0, "Meager Fortune", 2, 2, 3,[getTalentID("Spot A Sucker"),1]]; i++;
talent[i] = [0, "Lined Pockets", 2, 3, 3,[getTalentID("Hidden Padding"),2]]; i++;
talent[i] = [0, "Precise Bead", 4, 4, 3,[getTalentID("Hair Trigger"),4]]; i++;
talent[i] = [0, "Head Crack", 4, 5, 3,[getTalentID("Switcheroo"),4]]; i++;
talent[i] = [0, "Double Deal", 2, 6, 3,[getTalentID("Off The Cuff"),1]]; i++;
talent[i] = [0, "Wretched Fate", 2, 2, 4,[getTalentID("Meager Fortune"),2]]; i++;
talent[i] = [0, "Hammer Fanning", 4, 4, 4,[getTalentID("Precise Bead"),4]]; i++;
talent[i] = [0, "One-Two Pummel", 4, 5, 4,[getTalentID("Head Crack"),4]]; i++;
talent[i] = [0, "End Of the Line", 1, 6, 4,[getTalentID("Double Deal"),2]]; i++;
talent[i] = [0, "Poor Prospect", 2, 2, 5,[getTalentID("Wretched Fate"),2]]; i++;
talent[i] = [0, "Idiot Proof Plan", 2, 3, 5,[getTalentID("Lined Pockets"),2]]; i++;
talent[i] = [0, "Break The Deal", 1, 4, 5,[getTalentID("Hammer Fanning"),4]]; i++;
talent[i] = [0, "Bad Odds", 1, 5, 5,[getTalentID("One-Two Pummel"),4]]; i++;
talent[i] = [0, "Narrow Escape", 1, 6, 5]; i++;



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

talent[i] = [1, "Sly Lie", 1, 2, 1]; i++; 
talent[i] = [1, "Fast Talk", 1, 3, 1]; i++;
talent[i] = [1, "Easy Money", 2, 4, 1]; i++;
talent[i] = [1, "Ploy", 2, 5, 1]; i++; 
talent[i] = [1, "Healthy Profits", 1, 6, 1]; i++;
talent[i] = [1, "Half Truth", 2, 2, 2,[getTalentID("Sly Lie"),1]]; i++;
talent[i] = [1, "Fake ID", 1, 3, 2,[getTalentID("Fast Talk"),1]]; i++;
talent[i] = [1, "Feeling Lucky", 4, 4, 2,[getTalentID("Easy Money"),2]]; i++;
talent[i] = [1, "Scandal", 4, 5, 2,[getTalentID("Ploy"),2]]; i++;
talent[i] = [1, "Innocent Cargo", 2, 2, 3,[getTalentID("Half Truth"),2]]; i++;
talent[i] = [1, "Underworld Boss", 1, 3, 3]; i++;
talent[i] = [1, "Lucky Break", 4, 4, 3,[getTalentID("Feeling Lucky"),4]]; i++;
talent[i] = [1, "Smooth Move", 4, 5, 3,[getTalentID("Scandal"),4]]; i++;
talent[i] = [1, "Off The Books", 1, 6, 3]; i++;
talent[i] = [1, "Inside Information", 1, 2, 4]; i++;
talent[i] = [1, "Long Odds", 1, 3, 4]; i++;
talent[i] = [1, "Card Up Your Sleeve", 4, 4, 4,[getTalentID("Lucky Break"),4]]; i++;
talent[i] = [1, "False Hope", 1, 5, 4,[getTalentID("Smooth Move"),4]]; i++;
talent[i] = [1, "Under The Counter", 2, 6, 4,[getTalentID("Off The Books"),1]]; i++;
talent[i] = [1, "Quick Fix", 4, 4, 5]; i++;
talent[i] = [1, "Fake Goods", 2, 5, 5,[getTalentID("False Hope"),1]]; i++;
talent[i] = [1, "Best Deal Ever", 2, 6, 5,[getTalentID("Under The Counter"),2]]; i++;

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



/* updated for beastmastery */
//BEAST  talents
talent[i] = [2, "Enhanced Skill Acquisition", 4, 1, 1,[46,1]]; i++;
talent[i] = [2, "Creature Knowledge", 1, 2, 1,[47,1]]; i++;
talent[i] = [2, "Attack!", 1, 3, 1,[48,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;





/**************************/
//Smuggler Scoundrel Begin
//Enhanced Precision - Scoundrel
rank[i] = [
"Increases Precision by 25 per point spent."
		];
i++;

//Hidden Padding- Scoundrel
rank[i] = [
"Increases armor by 1000 per points spent in Hidden Pockets, diminishes by one point per two points of regular armor."
		];
i++;

//Gun Oil- Scoundrel
rank[i] = [
"Grants the Smuggler Pistol line of attacks."
		];
i++;		

//Elbow Grease - Scoundrel
rank[i] = [
"Grants the Smuggler Melee line of attacks."
		];
i++;		

//Enhanced Luck - Scoundrel 
rank[i] = [
"Increases Luck by 25 per point spent."
		];		
i++;		

//Spot A sucker - Scoundrel
rank[i] = [
"Grants the Spot a Sucker line of debuffs."
		];
i++;		

//Hair Trigger- Scoundrel 
rank[i] = [
"Decreases Fast Draw line of attacks action cost 4% per point spent while using a pistol."
		];
i++;		

//Switcheroo - Scoundrel  
rank[i] = [
"Increases the chance to be hit by a glancing blow by 2% per point spent while using a melee weapon."
		];
i++;		

//Off the Cuff- Scoundrel 
rank[i] = [
"A buff that allows the next strike to do a critical hit."
		];
i++;		

//Meagure Fortune - Scoundrel  
rank[i] = [
"Enemies afflicted with Spot a Sucker are 10% less likely to score a critical hit for each point spent in Meager Fortune."
		];
i++;				

//Lined Pockets- Scoundrel 
rank[i] = [
"Increases armor by 1000 per points spent in Lined Pockets, diminishes by one point per two points of regular armor."
		];
i++;		
		
//Precise Bead - Scoundrel 
rank[i] = [
"2% per point spent to increase your critical chance rate with a pistol.  Increased pistol range by 2m per point."
		];
i++;		

//Head Crack- Scoundrel 
rank[i] = [
"A passive chance of 3% per point spent to stun an opponent with a melee weapon."
		];
i++;		
		
//Double Deal- Scoundrel 

rank[i] = [
"A passive chance of 25% per point spent to strike two enemies while using Off the Cuff."
		];
i++;
	
//Wretched Fate- Scoundrel
rank[i]=[
"While afflicted with Spot a Sucker, enemies have a 10% chance per point spent to deal a glancing blow."
		];
i++;		
		
//Hammer Fanning - Scoundrel
rank[i]=[
"A passive chance of 3% per point spent to shoot twice as fast as usual with a pistol."
		];
i++;		



		
//One-Two Pummel - Scoundrel
rank[i]=[
"A passive chance of 4% per point spent to strike twice as fast as usual with a melee weapon."
		];
i++;		
		
//End of the Line - Scoundrel
rank[i]=[
"Grants the End of the Line attack, which allows a critical attack to do double damage."
	];
i++;		

//Poor Prospect - Scoundrel
rank[i]=[
"Enemies afflicted with Spot a Sucker have a 10% chance to deal less damage per point spent in Poor Prospect."
	];
i++;		
		
//Idiot Proof Plan- Scoundrel 
rank[i]=[
"All damage is reduced by 2% per point."
		];
i++;		
	
//Break the Deal - Scoundrel
rank[i]=[
"Lower an enemy's damage by 75% for 5 seconds."
		];
i++;	

//Bad Odds - Scoundrel
rank[i]=[
"Grants the Bad Odds line of DOT attacks."
		];
i++;	

//Narrow Escape - Scoundrel
rank[i]=[
"Grants the Narrow Escape line of abilities, which allow a Smuggler to temporarily become immune to snares."
		];

//Scoundrel Talents End^^

i++;

//Smuggler-Smuggler Talents Begin

//Sly Lie  - Smuggler
rank[i] = [
"While on a smuggler quest, Sly Lie can be used before combat by telling a lie that your cargo is not illegal."
		];
i++;		
		
//Fast talk - Smuggler
rank[i] = [
"During combat on a smuggling run, you can Fast Talk to confuse your attackers about your illegal cargo."
		];
i++;		

//Easy Money - Smuggler
rank[i] = [
"Adds +25 Luck per point spent."
		];
i++;		
		
//Ploy - Smuggler
rank[i] = [
"Adds +25 Precision per point spent."
		];
i++;		

//Helathy Profits  - Smuggler
rank[i] = [
"Grants the ability to call a Medic to your side through a favor, instead of a Smuggler."
		];
i++;		

//Helf Truth - Smuggler
rank[i] = [
"Increases chance to lie with Sly Lie and Fast Talk by 5% per point spent.  Adds +25 Luck per point spent."
		];
i++;		
		
//Fake ID - Smuggler
rank[i] = [
"Increases chance to lie with Sly Lie and Fast Talk by 10% per smuggler rank.  Fast Talk gains a +50 agility buff."
		];		
i++;		


//Feeling Lucky - Smuggler
rank[i] = [ 
"Chance to find smuggler loot +1% per point spent over base chance: finding smuggler loot grants a +100 Luck buff."
		];
i++;		


//Scandal - Smuggler 
rank[i] = [
"Increases area affect damage by 1% per point."
		];
i++;		

//Innocent Cargo- Smuggler
rank[i] = [
"Increases chance to lie with Sly Lie and Fast Talk by 5% per point spent.  Adds +25 Precision per point spent to Sly Lie."
		];
i++;		

//Underworld Boss - Smuggler
rank[i] = [
"Smuggler rank increases armor by 200 points per rank."
		];
i++;		

//Lucky Break- Smuggler  
rank[i] = [
"While Feeling Lucky, Lucky Break has a 1% chance per point to buff 100% critical hits for 10 seconds."
		];
i++;		

//Smooth Move- Smuggler
rank[i] = [
"All damage is increased by 1%, while using a pistol or melee weapon."
		];
i++;		

//Off the Books- Smuggler
rank[i] = [
"Grants the Off the Books ability.  Party members get a +50 luck buff when the dealer leaves."
		];		
i++;		

//Inside Information- Smuggler  			
rank[i] = [
"Grants the Inside Information ability."
		];
i++;		


//Long Odds - Smuggler
rank[i] = [
"Increases weapon ranges by 1m per Smuggler rank.  Increases damage by 1% per Smuggler rank."
		];
i++;

//Card Up your Sleeve- Smuggler
rank[i] = [
"10% chance per point to buff the player with double attacking for 5 seconds, while Feeling Lucky and Lucky Break"
		];
i++;


//False Hope - Smuggler
rank[i] = [
"Grants the False Hope ability, which is a stun area effect attack."
		];
i++;

//Under the Counter - Smuggler
rank[i] = [
"Adds +25 Precision per point spent to the Off the Books buff."
		];
i++;

//Quick FIx - Smuggler
rank[i] = [
"10% damage healed to your self heals per point spent."
		];
i++;

//Fake goods - Smuggler
rank[i] = [
"Extends the duration of the stun from False Hope by one second per point."
		];
i++;

//Best Deal Ever - Smuggler
rank[i] = [
"Smuggler gets 5% of profits per point.  Off the Books buff reduces damage by 3% per point spent."
		];

i++;

/* 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++;
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 = "smuggler";

nltree[i] = "scoundrel"; i++;
nltree[i] = "smuggler"; i++;
nltree[i] = "Beast Mastery"; i++;


i = 0;







//Scoundrel

nltalent[i] = ["Enhanced Precision","m","Precision|Modifies Precision",25,50,"--","--",1]; i++;
nltalent[i] = ["Hidden Padding","m","Overridable protection|",1000,2000,"--","--",1]; i++;
nltalent[i] = ["Gun Oil|FAST DRAW 2","s","Fast Draw 2: A quick level 10 attack that causes bonus damage.","--","--","--","--",1]; i++;
nltalent[i] = ["Elbow Grease|PRECISION STRIKE 2","s","Precision Strike 2: A precise level 10 strike that causes bonus damage.","--","--","--","--",1]; i++;
nltalent[i] = ["Enhanced Luck","m","LUCK|Luck Attribute Bonus",25,50,"--","--",1]; i++;
nltalent[i] = ["Spot A Sucker|SPOT A SUCKER 1","s","Spot a Sucker 1: A powerful debuff that lowers precision on the target.","--","--","--","--",0]; i++;
nltalent[i] = ["Hair Trigger","m","Action Decrease|",4,8,12,16,0]; i++;
nltalent[i] = ["Switcheroo","m","Glancing Blow Increase",2,4,6,8,0]; i++;
nltalent[i] = ["Off The Cuff","s","Off the Cuff: Buffs you with the ability to strike a critical hit with your next attack.","--","--","--","--",0]; i++;
nltalent[i] = ["Meagre Fortune","m","Critical Chance Decrease|",10,20,"--","--",0]; i++;
nltalent[i] = ["Lined Pockets","m","Overridable protection|",1000,2000,"--","--",0]; i++;
nltalent[i] = ["Precise Bead","m","Pistol Critical Chance|Increase critical chance.",2,4,6,8,0,"Pistol Range Bonus|",2,4,6,8]; i++;
nltalent[i] = ["Head Crack","m","Melee Stun Chance|",3,6,9,12,0]; i++;
nltalent[i] = ["Double Deal","m","Double Deal Chance|",25,50,"--","--",0]; i++;
nltalent[i] = ["Wretched Fate","m","Glacing Blow Chance|",10,20,"--","--",0]; i++;
nltalent[i] = ["Hammer Fanning","m","Hammer Fanning Chance|",3,6,9,12,0]; i++;
nltalent[i] = ["One-Two Pummel","m","One-Two Pummel Chance|",4,8,12,16,0]; i++;
nltalent[i] = ["End of the Line","s","End of the Line: Buffs you with the ability to deal double damage once, when you critical hit.","--","--","--","--",0]; i++;
nltalent[i] = ["Poor Prospect","m","Damage Decrease Chance|",10,20,"--","--",0]; i++;
nltalent[i] = ["Idiot Proof Plan","m","Damage Decrease|",2,4,"--","--",0]; i++;
nltalent[i] = ["Break The Deal","s","Break the Deal: An ability that befuddles your target causing all attacks to deal only 25% damage.","--","--","--","--",0]; i++;
nltalent[i] = ["Bad Odds|BAD ODDS 1","s","Bad Odds 1: A level 34 poisonous attack that causes your opponent to take damage over time.","--","--","--","--",0]; i++;
nltalent[i] = ["Narrow Escape|NARROW ESCAPE 1","s","Narrow Escape 1: A level 34 buff that cures you of snares and makes you temporarily immune to being snared.","--","--","--","--",0]; i++;



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

//smuggler
//The last parameter for checking default
nltalent[i] = ["Sly Lie","s","Sly Lie: While on a smuggler quest, Sly Lie can be used before combat by telling a lie that your cargo is not illegal.","--","--","--","--",1]; i++;
nltalent[i] = ["Fast Talk","s","Fast Talk: During combat on a smuggling run, you can Fast Talk to confuse your attackers about your illegal cargo.","--","--","--","--",1]; i++;
nltalent[i] = ["Easy Money|Luck","ms","|Luck attribute bonus ",25,50,"--","--",1]; i++;
nltalent[i] = ["Ploy|PRECISION","ms","|Modifies Precision",25,50,"--","--",1]; i++; 
nltalent[i] = ["Healthy Profits|CALL A FAVOR 2:MEDIC","s","Call a Favor 2: The smuggler calls in a favor for a medic to aid in combat.","--","--","--","--",1]; i++;
nltalent[i] = ["Half Truth","m","LUCK BONUS|",25,50,"--","--",0,"SLY LIE BONUS|",5,10,"--","--","FAST TALK BONUS|",5,10,"--","--"]; i++;
nltalent[i] = ["Fake ID","m","Agility Bonus|",50,"--","--","--",0,"Sly Lie Bonus Per Rank|",10,"--","--","--","Fast Talk Bonus Per Rank|",10,"--","--","--"]; i++;
nltalent[i] = ["Feeling Lucky","m","Smuggler Loot Bonus|",1,2,3,4,0,"FEELING LUCKY PROC|",1,2,3,4]; i++;
nltalent[i] = ["Scandal","m","AOE Damage Bonus|",1,2,3,4,0]; i++;
nltalent[i] = ["Innocent Cargo","m","Precision Bonus|",25,50,"--","--",0,"Sly Lie Bonus|",5,10,"--","--","Fast talk Bonus|",5,10,"--","--"]; i++;
nltalent[i] = ["Underworld Boss","m","Innate Armor Bonus|",200,"--","--","--",0]; i++;
nltalent[i] = ["Lucky Break","m","CARD UP YOU SLEEVE|",1,2,3,4,0]; i++;
nltalent[i] = ["Smooth Move","m","Melee Damage Increase|",1,2,3,4,0,"Pistol Damage Increase|",1,2,3,4]; i++;
nltalent[i] = ["Off The Books","s","Off the Books: Communicates with a junk dealer to visit your location for party members to sell to.","--","--","--","--",0]; i++;
nltalent[i] = ["Inside Information","s","Inside Information: Communicates with a contact within Jabba's palace to get information on bounties.","--","--","--","--",0]; i++;
nltalent[i] = ["Long Odds","m","Attack Range Bonus|",1,"--","--","--",0,"Attack Damage Bonus|",1,"--","--","--"]; i++;
nltalent[i] = ["Card Up Your Sleeve","m","Double Hit Chance|",10,20,30,40,0,"Ranged Double Attack|",25,50,75,100,"Melee Double Attack|",25,50,75,100]; i++;
nltalent[i] = ["False Hope","s","False Hope: Toss a fake crate of goods booby trapped with a stun device.","--","--","--","--",0]; i++;

nltalent[i] = ["Under The Counter","m","Precision Bonus|",25,50,"--","--",0]; i++;
nltalent[i] = ["Quick Fix","m","Self Heal bonus|",10,20,30,40,0]; i++;
nltalent[i] = ["Fake Goods","m","False Hope Duration|",1,2,"--","--",0]; i++;
nltalent[i] = ["Best Deal Ever","m","Damage Reduction|",3,6,"--","--",0,"Smuggler Profit Cut|",5,10,"--","--"]; 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 = "point";

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

/******* updated for vm’s parameter identifier ****/

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

