Пример #1
0
        public static HarvestSystem GetSystem(BaseAxe axe)
        {
            Map     map;
            Point3D loc;

            object root = axe.RootParent;

            if (root == null)
            {
                map = axe.Map;
                loc = axe.Location;
            }
            else
            {
                map = ((IEntity)root).Map;
                loc = ((IEntity)root).Location;
            }

            IPooledEnumerable eable = map.GetMobilesInRange(loc, 50);

            foreach (Mobile mob in eable)
            {
                if (mob is MineSpirit)               //find a mine spot
                {
                    MineSpirit mine = (MineSpirit)mob;

                    if (mine.GetDistanceToSqrt(loc) < mine.Range)
                    {
                        return(mine.HarvestSystem);                       //return its system
                    }
                }
            }

            return(null);           //Nothing to harvest
        }
Пример #2
0
        public override bool Axe(Mobile from, BaseAxe axe)
        {
            if (!TryCreateBoards(from, 50, new PurplePassionBoard()))
            {
                return(false);
            }

            return(true);
        }
Пример #3
0
        public override bool Axe(Mobile from, BaseAxe axe)
        {
            if (!TryCreateBoards(from, 114, new StormtealBoard()))
            {
                return(false);
            }

            return(true);
        }
Пример #4
0
        public override bool Axe(Mobile from, BaseAxe axe)
        {
            if (!TryCreateBoards(from, 100, new BloodwoodBoard()))
            {
                return(false);
            }

            return(true);
        }
Пример #5
0
        public override bool Axe(Mobile from, BaseAxe axe)
        {
            if (!TryCreateBoards(from, 145, new ElvenBoard()))
            {
                return(false);
            }

            return(true);
        }
Пример #6
0
        public override bool Axe(Mobile from, BaseAxe axe)
        {
            if (!TryCreateBoards(from, 95, new GauntletBoard()))
            {
                return(false);
            }

            return(true);
        }
Пример #7
0
        public virtual bool Axe(Mobile from, BaseAxe axe)
        {
            if (!TryCreateBoards(from, 0, new Board()))
            {
                return(false);
            }

            return(true);
        }
Пример #8
0
        public override bool Axe(Mobile from, BaseAxe axe)
        {
            if (!TryCreateBoards(from, 59, new GoldenReflectionBoard()))
            {
                return(false);
            }

            return(true);
        }
Пример #9
0
        public override bool Axe(Mobile from, BaseAxe axe)
        {
            if (!TryCreateBoards(from, 110, new SilverleafBoard()))
            {
                return(false);
            }

            return(true);
        }
Пример #10
0
        public override bool Axe(Mobile from, BaseAxe axe)
        {
            if (!TryCreateBoards(from, 65, new HardrangerBoard()))
            {
                return(false);
            }

            return(true);
        }
Пример #11
0
        private const double HealChance = 1.00;         // 100% chance to heal at gm magery

        public override void AlterMeleeDamageFrom(Mobile from, ref int damage)
        {
            if (from is PlayerMobile)
            {
                BaseAxe BA = from.FindItemOnLayer(Layer.TwoHanded) as BaseAxe;
                if (BA != null)
                {
                    damage *= 3;
                }
            }
        }
Пример #12
0
        public override void AlterMeleeDamageFrom(Mobile from, ref int damage)
        {
            if (from is PlayerMobile && DoWeaponsDoMoreDamage > 0)
            {
                BaseSword bs = from.FindItemOnLayer(Layer.OneHanded) as BaseSword;
                if (bs != null)
                {
                    damage *= DoWeaponsDoMoreDamage;
                }

                BasePoleArm BPA = from.FindItemOnLayer(Layer.TwoHanded) as BasePoleArm;
                if (BPA != null)
                {
                    damage *= DoWeaponsDoMoreDamage;
                }

                BaseSpear BP = from.FindItemOnLayer(Layer.TwoHanded) as BaseSpear;
                if (BP != null)
                {
                    damage *= DoWeaponsDoMoreDamage;
                }

                BaseAxe BA = from.FindItemOnLayer(Layer.TwoHanded) as BaseAxe;
                if (BA != null)
                {
                    damage *= DoWeaponsDoMoreDamage;
                }

                BaseRanged BR = from.FindItemOnLayer(Layer.TwoHanded) as BaseRanged;
                if (BR != null)
                {
                    damage *= DoWeaponsDoMoreDamage;
                }
            }

            if (from is BaseCreature)
            {
                BaseCreature bc = (BaseCreature)from;

                if (bc.Controlled || bc.Summoned || bc.BardTarget == this)
                {
                    damage /= DoLessDamageFromPets;
                }
            }
        }
Пример #13
0
 public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 95, new YewBoard());
Пример #14
0
		public override bool Axe( Mobile from, BaseAxe axe )
		{
			if ( !TryCreateBoards( from , 95, new YewBoard() ) )
				return false;

			return true;
		}
Пример #15
0
		public override bool Axe( Mobile from, BaseAxe axe )
		{
			if ( !TryCreateBoards( from , 100, new FrostwoodBoard() ) )
				return false;

			return true;
		}
Пример #16
0
		public virtual bool Axe( Mobile from, BaseAxe axe )
		{
			if ( !TryCreateBoards( from , 0, new Board() ) )
				return false;
			
			return true;
		}
Пример #17
0
 public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 80, new AshBoard());
Пример #18
0
 public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 100, new HeartwoodBoard());
Пример #19
0
 public virtual bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 0, new Board());