ModernUO/Projects/UOContent/Items/Champion Artifacts/Decorative/Futon.cs
Kamron Batman 8e01db8555
fix: Fixes random bias & Adds back champion arties for UOML (#1235)
* Fixes RNG bias, we should never do `Utility.RandomDouble() <=`
* Adds back champion artifacts behind UOML flag.
2022-11-09 16:33:27 -08:00

26 lines
558 B
C#

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