### Summary Most potions have various checks, such as a cooldown. This fixes an edge case where potions get split from their stack before erroring.
34 lines
837 B
C#
34 lines
837 B
C#
using ModernUO.Serialization;
|
|
|
|
namespace Server.Items;
|
|
|
|
[SerializationGenerator(0, false)]
|
|
public partial class MelisandesFermentedWine : GreaterExplosionPotion
|
|
{
|
|
[Constructible]
|
|
public MelisandesFermentedWine()
|
|
{
|
|
Stackable = false;
|
|
ItemID = 0x99B;
|
|
|
|
// TODO update
|
|
Hue = Utility.Random(3) switch
|
|
{
|
|
1 => 0xF,
|
|
2 => 0x48D,
|
|
_ => 0xB,
|
|
};
|
|
}
|
|
|
|
public override int LabelNumber => 1072114; // Melisande's Fermented Wine
|
|
|
|
public override bool CanDrink(Mobile from) => MondainsLegacy.CheckML(from) && base.CanDrink(from);
|
|
|
|
public override void GetProperties(IPropertyList list)
|
|
{
|
|
base.GetProperties(list);
|
|
|
|
list.Add(1074502); // It looks explosive.
|
|
list.Add(1075085); // Requirement: Mondain's Legacy
|
|
}
|
|
}
|