Ejemplo 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();
            }
        }
Ejemplo 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.");
            }
        }
Ejemplo n.º 3
0
 public PropertyEffect(PropertyEffect copySource) : base(copySource)
 {
     property       = copySource.property;
     assignmentType = copySource.assignmentType;
     value          = copySource.value;
 }