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 }
public override bool Axe(Mobile from, BaseAxe axe) { if (!TryCreateBoards(from, 50, new PurplePassionBoard())) { return(false); } return(true); }
public override bool Axe(Mobile from, BaseAxe axe) { if (!TryCreateBoards(from, 114, new StormtealBoard())) { return(false); } return(true); }
public override bool Axe(Mobile from, BaseAxe axe) { if (!TryCreateBoards(from, 100, new BloodwoodBoard())) { return(false); } return(true); }
public override bool Axe(Mobile from, BaseAxe axe) { if (!TryCreateBoards(from, 145, new ElvenBoard())) { return(false); } return(true); }
public override bool Axe(Mobile from, BaseAxe axe) { if (!TryCreateBoards(from, 95, new GauntletBoard())) { return(false); } return(true); }
public virtual bool Axe(Mobile from, BaseAxe axe) { if (!TryCreateBoards(from, 0, new Board())) { return(false); } return(true); }
public override bool Axe(Mobile from, BaseAxe axe) { if (!TryCreateBoards(from, 59, new GoldenReflectionBoard())) { return(false); } return(true); }
public override bool Axe(Mobile from, BaseAxe axe) { if (!TryCreateBoards(from, 110, new SilverleafBoard())) { return(false); } return(true); }
public override bool Axe(Mobile from, BaseAxe axe) { if (!TryCreateBoards(from, 65, new HardrangerBoard())) { return(false); } return(true); }
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; } } }
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; } } }
public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 95, new YewBoard());
public override bool Axe( Mobile from, BaseAxe axe ) { if ( !TryCreateBoards( from , 95, new YewBoard() ) ) return false; return true; }
public override bool Axe( Mobile from, BaseAxe axe ) { if ( !TryCreateBoards( from , 100, new FrostwoodBoard() ) ) return false; return true; }
public virtual bool Axe( Mobile from, BaseAxe axe ) { if ( !TryCreateBoards( from , 0, new Board() ) ) return false; return true; }
public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 80, new AshBoard());
public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 100, new HeartwoodBoard());
public virtual bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 0, new Board());