ModernUO/Projects/UOContent/Items/Wands/IDWand.cs
Kamron Batman 54d728a322
fix: Updates serialization to use v2.0 (#998)
- [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
2022-04-17 08:02:15 -07:00

40 lines
918 B
C#

using System;
using ModernUO.Serialization;
namespace Server.Items
{
[SerializationGenerator(0, false)]
public partial class IDWand : BaseWand
{
[Constructible]
public IDWand() : base(WandEffect.Identification, 25, 175)
{
}
public override TimeSpan GetUseDelay => TimeSpan.Zero;
public override bool OnWandTarget(Mobile from, object o)
{
if (o is Item item)
{
if (item is BaseWeapon weapon)
{
weapon.Identified = true;
}
else if (item is BaseArmor armor)
{
armor.Identified = true;
}
if (!Core.AOS)
{
item.OnSingleClick(from);
}
return true;
}
return false;
}
}
}