Exemplo n.º 1
0
        public override bool OnEquip(Mobile from)
        {
            if (from is Player)
            {
                Marksman mm = Perk.GetByType <Marksman>((Player)from);

                if (mm != null && mm.LongShot() == true)
                {
                    this.MaxRange  += 3;
                    mm.BowConverted = true;
                }
            }

            return(base.OnEquip(from));
        }
Exemplo n.º 2
0
        public override void OnRemoved(IEntity parent)
        {
            if (parent is Player)
            {
                Marksman mm = Perk.GetByType <Marksman>((Player)parent);

                if (mm != null && mm.LongShot() == true)
                {
                    if (mm.BowConverted)
                    {
                        this.MaxRange  -= 3;
                        mm.BowConverted = false;
                    }
                }
            }

            base.OnRemoved(parent);
        }