/**********************************************************
RunUO 2.0 AoV C# script file
Official Age of Valor Script :: www.uovalor.com
Last modified by Red Squirrel on Feb-12-2011 07:52:53pm
Filepath: scripts\_custom\mlpackage\Engines\Community Collections\Britain Library\Rewards\Talismans.cs
Lines of code: 203
***********************************************************/


using System;
using Server;
using Server.Mobiles;

namespace Server.Items
{	
	public class TreatiseonAlchemyTalisman : BaseTalisman
	{
		public override int LabelNumber{ get{ return 1073353; } } // Library Talisman - Treatise on Alchemy
		public override bool ForceShowName{ get{ return true; } }
	
		[Constructable]
		public TreatiseonAlchemyTalisman() : base( 0x2F58 )
		{
			Skill = SkillName.Alchemy;
			SuccessBonus = RandomTalisman.GetRandomSuccessful();
			Blessed = RandomTalisman.GetRandomBlessed();	
			
			Attributes.EnhancePotions = 15;			
			SkillBonuses.SetValues( 0, SkillName.Magery, 5.0 );
		}
		
		public TreatiseonAlchemyTalisman( Serial serial ) :  base( serial )
		{
		}
		
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
		}
	}
	
	public class PrimerOnArmsTalisman : BaseTalisman
	{
		public override int LabelNumber{ get{ return 1073354; } } // Library Talisman - A Primer on Arms
		public override bool ForceShowName{ get{ return true; } }
	
		[Constructable]
		public PrimerOnArmsTalisman() : base( 0x2F59 )
		{			
			Blessed = RandomTalisman.GetRandomBlessed();	
			
			Attributes.BonusStr = 1;			
			Attributes.RegenHits = 2;
			Attributes.WeaponDamage = 20;
						
			Removal = TalismanRemoval.Damage;
			MaxChargeTime = 1200;
		}
		
		public PrimerOnArmsTalisman( Serial serial ) :  base( serial )
		{
		}
		
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
		}
	}
	
	public class MyBookTalisman : BaseTalisman
	{
		public override int LabelNumber{ get{ return 1073355; } } // Library Talisman - My Book
		public override bool ForceShowName{ get{ return true; } }
	
		[Constructable]
		public MyBookTalisman() : base( 0x2F5A )
		{			
			Blessed = RandomTalisman.GetRandomBlessed();	
			
			Skill = SkillName.Inscribe;
			SuccessBonus = RandomTalisman.GetRandomSuccessful();			
			ExceptionalBonus = RandomTalisman.GetRandomExceptional();	
			
			Attributes.BonusInt = 5;			
			Attributes.BonusMana = 2;
		}
		
		public MyBookTalisman( Serial serial ) :  base( serial )
		{
		}
		
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
		}
	}
	
	public class TalkingtoWispsTalisman : BaseTalisman
	{
		public override int LabelNumber{ get{ return 1073356; } } // Library Talisman - Talking to Wisps
		public override bool ForceShowName{ get{ return true; } }
	
		[Constructable]
		public TalkingtoWispsTalisman() : base( 0x2F5B )
		{			
			Blessed = RandomTalisman.GetRandomBlessed();	
			
			SkillBonuses.SetValues( 0, SkillName.SpiritSpeak, 3.0 );
			SkillBonuses.SetValues( 1, SkillName.EvalInt, 5.0 );
			
			Removal = TalismanRemoval.Ward;
			MaxChargeTime = 1200;
		}
		
		public TalkingtoWispsTalisman( Serial serial ) :  base( serial )
		{
		}
		
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
		}
	}
	
	public class GrammarOfOrchishTalisman : BaseTalisman
	{
		public override int LabelNumber{ get{ return 1073358; } } // Library Talisman - a Grammar of Orchish (Summoner)
		public override bool ForceShowName{ get{ return true; } }
	
		[Constructable]
		public GrammarOfOrchishTalisman() : base( 0x2F59 )
		{			
			Blessed = RandomTalisman.GetRandomBlessed();	
			Protection = RandomTalisman.GetRandomProtection();
			Summoner = new TalismanAttribute( typeof( SummonedOrcBrute ), 0, 1072414 );
			
			SkillBonuses.SetValues( 0, SkillName.MagicResist, 5.0 );
			SkillBonuses.SetValues( 1, SkillName.Anatomy, 7.0 );
			
			MaxChargeTime = 1800;
		}
		
		public GrammarOfOrchishTalisman( Serial serial ) :  base( serial )
		{
		}
		
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
		}
	}
	
	public class BirdsofBritanniaTalisman : BaseTalisman
	{
		public override int LabelNumber{ get{ return 1074892; } } // Library Talisman - Birds of Britannia Random Summoner
		public override bool ForceShowName{ get{ return true; } }
	
		[Constructable]
		public BirdsofBritanniaTalisman() : base( 0x2F5A )
		{			
			Blessed = RandomTalisman.GetRandomBlessed();	
			Slayer = SlayerName.Bird;
			
			SkillBonuses.SetValues( 0, SkillName.AnimalTaming, 5.0 );
			SkillBonuses.SetValues( 1, SkillName.AnimalLore, 5.0 );
			
			MaxChargeTime = 1800;
		}
		
		public override Type GetSummonType()
		{		
			return RandomTalisman.GetRandomSummonType();
		}
		
		public BirdsofBritanniaTalisman( Serial serial ) :  base( serial )
		{
		}
		
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
		}
	}
	
	public class TheLifeOfTravelingMinstrelTalisman : BaseTalisman
	{
		public override int LabelNumber{ get{ return 1073360; } } // Library Talisman - The Life of a Traveling Minstrel
		public override bool ForceShowName{ get{ return true; } }
	
		[Constructable]
		public TheLifeOfTravelingMinstrelTalisman() : base( 0x2F5B )
		{			
			Blessed = RandomTalisman.GetRandomBlessed();	
			Protection = RandomTalisman.GetRandomProtection();
			
			SkillBonuses.SetValues( 0, SkillName.Provocation, 5.0 );
			SkillBonuses.SetValues( 1, SkillName.Musicianship, 5.0 );
			
			Removal = TalismanRemoval.Curse;
			MaxChargeTime = 1200;		
		}
		
		public TheLifeOfTravelingMinstrelTalisman( Serial serial ) :  base( serial )
		{
		}
		
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
		}
	}
}