This commit is contained in:
parent
7e03093d14
commit
0b6d25874d
1 changed files with 37 additions and 37 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue