ModernUO/Scripts/Items/Weapons/Artifacts/LegacyOfTheDreadLord.cs
2018-09-14 08:41:38 -07:00

45 lines
975 B
C#

namespace Server.Items
{
public class LegacyOfTheDreadLord : Bardiche
{
public override int LabelNumber => 1060860; // Legacy of the Dread Lord
public override int ArtifactRarity => 10;
public override int InitMinHits => 255;
public override int InitMaxHits => 255;
[Constructible]
public LegacyOfTheDreadLord()
{
Hue = 0x676;
Attributes.SpellChanneling = 1;
Attributes.CastRecovery = 3;
Attributes.WeaponSpeed = 30;
Attributes.WeaponDamage = 50;
}
public LegacyOfTheDreadLord( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 );
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize( reader );
int version = reader.ReadInt();
if ( Attributes.CastSpeed == 3 )
Attributes.CastRecovery = 3;
if ( Hue == 0x4B9 )
Hue = 0x676;
}
}
}