ModernUO/Projects/UOContent/Items/Misc/Blighted Grove/MelisandesFermentedWine.cs
Kamron Batman 38731d98b6
fix: Fixes splitting potions before error (#1862)
### Summary

Most potions have various checks, such as a cooldown. This fixes an edge case where potions get split from their stack before erroring.
2024-07-06 16:39:47 -07:00

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
}
}