* Fixes RNG bias, we should never do `Utility.RandomDouble() <=` * Adds back champion artifacts behind UOML flag.
26 lines
558 B
C#
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
|
|
};
|
|
}
|
|
}
|
|
}
|