public virtual void DisplayDurabilityTo(Mobile m)
{
LabelToAffix(m, 1017323, AffixType.Append, ": " + m_UsesRemaining.ToString()); // Durability
}
public abstract class BaseInstrument : Item, IUsesRemaining, ISlayer, IQuality, IResource // Added IUsesRemaining to show durability.
public bool ShowUsesRemaining // Added to show UsesRemaining
{
get
{
return true;
}
set
{
}
}
public virtual bool BreakOnDepletion { get { return true; } }
public virtual void DisplayDurabilityTo(Mobile m)
{
LabelToAffix(m, 1017323, AffixType.Append, ": " + m_UsesRemaining.ToString()); // Durability
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.