/// <summary> /// Gets the grid field. /// </summary> /// <param name="entityType">Type of the entity.</param> /// <param name="selection">The selection.</param> /// <returns></returns> public override System.Web.UI.WebControls.DataControlField GetGridField(Type entityType, string selection) { var result = new LavaField(); result.LavaKey = entityType.Name; result.LavaTemplate = selection; return(result); }
private int lavaField() { var multi = getAttackMultiplier(); var increase = getAttackModifier(); var lava = new LavaField(); Cooldowns[2] = lava.Cooldown; return(lava.Action(SpellPower, Crit, multi, increase)); }
/// <summary> /// Gets the grid column. /// </summary> /// <returns></returns> public LavaField GetGridColumn() { var lavaField = new LavaField(); lavaField.HeaderText = this.HeaderText; lavaField.HeaderStyle.CssClass = this.HeaderClass; lavaField.ItemStyle.CssClass = this.ItemClass; lavaField.LavaTemplate = this.LavaTemplate; lavaField.ConvertToItemDictionary = false; return lavaField; }
public override void OnGaveMeleeAttack(Mobile defender) { base.OnGaveMeleeAttack(defender); if (Utility.RandomDouble() < .1 && defender != null) { PlaySound(0x1DD); int impactItemId = 0x3709; int impactHue = 2074; Effects.SendLocationParticles(EffectItem.Create(defender.Location, defender.Map, EffectItem.DefaultDuration), impactItemId, 20, 20, impactHue, 0, 0, 0); LavaField lavaField = new LavaField(this, 0, 1, LavaDuration, LavaMinDamage, LavaMaxDamage, false, false, true, -1, true); lavaField.MoveToWorld(defender.Location, defender.Map); } }
protected override bool OnMove(Direction d) { if (Utility.RandomDouble() <= .10) { PlaySound(0x1DD); int impactItemId = 0x3709; int impactHue = 2074; Effects.SendLocationParticles(EffectItem.Create(Location, Map, EffectItem.DefaultDuration), impactItemId, 20, 20, impactHue, 0, 0, 0); LavaField lavaField = new LavaField(this, 0, 1, LavaDuration, LavaMinDamage, LavaMaxDamage, false, false, true, -1, true); lavaField.MoveToWorld(Location, Map); } return(base.OnMove(d)); }
public override bool OnBeforeDeath() { PlaySound(0x56D); int impactItemId = 0x3709; int impactHue = 2074; for (int a = 0; a < 5; a++) { Point3D newLocation = new Point3D(Location.X + Utility.RandomMinMax(-2, 2), Location.Y + Utility.RandomMinMax(-2, 2), Location.Z); newLocation.Z = Map.GetSurfaceZ(Location, 30); LavaField lavaField = new LavaField(this, 0, 1, LavaDuration, LavaMinDamage, LavaMaxDamage, false, false, true, -1, true); lavaField.MoveToWorld(newLocation, Map); Effects.SendLocationParticles(EffectItem.Create(newLocation, Map, EffectItem.DefaultDuration), impactItemId, 20, 20, impactHue, 0, 0, 0); } return(base.OnBeforeDeath()); }
public override double setStatusEffect(string id, int targetPosition) { if (id == "Lava Field") { var multi = getAttackMultiplier(); var increase = getAttackModifier(); var lava = new LavaField(); return(lava.Action(SpellPower, Crit, multi, increase)); } if (id == "Hellfire") { var multi = getAttackMultiplier(); var increase = getAttackModifier(); var hellfire = new Hellfire(); return(hellfire.DoT(SpellPower, Crit, multi, increase)); } else { return(0); } }
public override string[] Ability3() { var lava = new LavaField(); return(lava.Info()); }