From 0b6d25874d5b05663159d33fe66f96b829b0fd5b Mon Sep 17 00:00:00 2001 From: xavier Date: Sun, 28 Aug 2011 03:49:41 +0000 Subject: [PATCH] --- ...fProtection.cs => EarringsOfProtection.cs} | 74 +++++++++---------- 1 file changed, 37 insertions(+), 37 deletions(-) rename Scripts/Items/Special/11th Year promo/{EarringosfProtection.cs => EarringsOfProtection.cs} (79%) diff --git a/Scripts/Items/Special/11th Year promo/EarringosfProtection.cs b/Scripts/Items/Special/11th Year promo/EarringsOfProtection.cs similarity index 79% rename from Scripts/Items/Special/11th Year promo/EarringosfProtection.cs rename to Scripts/Items/Special/11th Year promo/EarringsOfProtection.cs index 3868c76e5..1572a693e 100644 --- a/Scripts/Items/Special/11th Year promo/EarringosfProtection.cs +++ b/Scripts/Items/Special/11th Year promo/EarringsOfProtection.cs @@ -4,7 +4,40 @@ using System.Text; namespace Server.Items { - public class EarringosfProtection : BaseJewel + public class EarringBoxSet : RedVelvetGiftBox + { + [Constructable] + public EarringBoxSet() + : base() + { + DropItem( new EarringsOfProtection( AosElementAttribute.Physical ) ); + DropItem( new EarringsOfProtection( AosElementAttribute.Fire ) ); + DropItem( new EarringsOfProtection( AosElementAttribute.Cold ) ); + DropItem( new EarringsOfProtection( AosElementAttribute.Poison ) ); + DropItem( new EarringsOfProtection( AosElementAttribute.Energy ) ); + } + + public EarringBoxSet( 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 EarringsOfProtection : BaseJewel { [CommandProperty( AccessLevel.GameMaster )] public virtual AosElementAttribute Attribute @@ -35,13 +68,12 @@ namespace Server.Items private LootType m_LootType; [Constructable] - public EarringosfProtection() - : this( RandomType() ) + public EarringsOfProtection() : this( RandomType() ) { } [Constructable] - public EarringosfProtection( AosElementAttribute element ) + public EarringsOfProtection( AosElementAttribute element ) : base( 0x1087, Layer.Earrings ) { Resistances[ ( (AosElementAttribute)element ) ] = 2; @@ -50,7 +82,7 @@ namespace Server.Items LootType = LootType.Blessed; } - public EarringosfProtection( Serial serial ) + public EarringsOfProtection( Serial serial ) : base( serial ) { } @@ -102,36 +134,4 @@ namespace Server.Items } } } - - public class EarringBoxSet : RedVelvetGiftBox - { - [Constructable] - public EarringBoxSet() - : base() - { - DropItem( new EarringosfProtection( AosElementAttribute.Physical ) ); - DropItem( new EarringosfProtection( AosElementAttribute.Fire ) ); - DropItem( new EarringosfProtection( AosElementAttribute.Cold ) ); - DropItem( new EarringosfProtection( AosElementAttribute.Poison ) ); - DropItem( new EarringosfProtection( AosElementAttribute.Energy ) ); - } - - public EarringBoxSet( 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(); - } - } } \ No newline at end of file