Esempio n. 1
0
        public override void Drink(Mobile from)
        {
            if (!PropertyEffect.VictimIsUnderEffects <BoneBreakerContext>(from))
            {
                from.Stam += Scale(from, (int)(Refresh * from.StamMax));

                PlayDrinkEffect(from);
                Consume();
            }
        }
Esempio n. 2
0
        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.");
            }
        }