public override void Drink(Mobile from) { if (!PropertyEffect.VictimIsUnderEffects <BoneBreakerContext>(from)) { from.Stam += Scale(from, (int)(Refresh * from.StamMax)); PlayDrinkEffect(from); Consume(); } }
public override void Drink(Mobile from) { if (from.Stam < from.StamMax) { if (!PropertyEffect.VictimIsUnderEffects <BoneBreakerContext>(from)) { from.Stam += Scale(from, (int)(Refresh * from.StamMax)); PlayDrinkEffect(from); Consume(); } else { // TODO: Message? } } else { from.SendMessage("You decide against drinking this potion, as you are already at full stamina."); } }
public PropertyEffect(PropertyEffect copySource) : base(copySource) { property = copySource.property; assignmentType = copySource.assignmentType; value = copySource.value; }