ModernUO/Projects/UOContent/Items/Body Parts/RibCage.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

28 lines
642 B
C#

using ModernUO.Serialization;
namespace Server.Items
{
[SerializationGenerator(0, false)]
[Flippable(0x1B17, 0x1B18)]
public partial class RibCage : Item, IScissorable
{
[Constructible]
public RibCage() : base(0x1B17 + Utility.Random(2))
{
Stackable = false;
Weight = 5.0;
}
public bool Scissor(Mobile from, Scissors scissors)
{
if (Deleted || !from.CanSee(this))
{
return false;
}
ScissorHelper(from, new Bone(), Utility.RandomMinMax(3, 5));
return true;
}
}
}