- [X] Deletes serialization annotations - [X] Updates to ModernUO.Serialization.Annotations nuget - [X] Updates serializer to v2.0 - [X] Changes all `Serializable()` to `SerializationGenerator()` - [X] Updates to schema generator v2.0
28 lines
567 B
C#
28 lines
567 B
C#
using ModernUO.Serialization;
|
|
|
|
namespace Server.Items
|
|
{
|
|
[SerializationGenerator(0, false)]
|
|
public partial class DragonEasterEgg : Item, IDyable
|
|
{
|
|
[Constructible]
|
|
public DragonEasterEgg()
|
|
: base(0x47E6)
|
|
{
|
|
}
|
|
|
|
public override int LabelNumber => 1097278;
|
|
|
|
public bool Dye(Mobile from, DyeTub sender)
|
|
{
|
|
if (Deleted || !sender.AllowDyables)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
Hue = sender.DyedHue;
|
|
|
|
return true;
|
|
}
|
|
}
|
|
}
|