ModernUO/Projects/UOContent/Items/Champion Artifacts/Decorative/Futon.cs
2021-08-21 13:03:05 -07:00

24 lines
525 B
C#

namespace Server.Items
{
[Flippable]
[Serializable(0, false)]
public partial class Futon : Item
{
[Constructible]
public Futon() : base(Utility.RandomDouble() > 0.5 ? 0x295C : 0x295E)
{
}
public void Flip()
{
ItemID = ItemID switch
{
0x295C => 0x295D,
0x295E => 0x295F,
0x295D => 0x295C,
0x295F => 0x295E,
_ => ItemID
};
}
}
}