Add DefaultName property to Mobiles & Items (#18)
This commit is contained in:
parent
b06f5bf60d
commit
8ee42c8ea2
713 changed files with 5112 additions and 4987 deletions
|
|
@ -41,7 +41,7 @@ namespace Server.Spells.Necromancy
|
|||
}
|
||||
|
||||
|
||||
public override bool DelayedDamage { get { return false; } }
|
||||
public override bool DelayedDamage => false;
|
||||
|
||||
private static readonly int Range = (Core.ML ? 48 : 18);
|
||||
|
||||
|
|
@ -198,4 +198,4 @@ namespace Server.Spells.Necromancy
|
|||
new Point3D( 295, 712, 55 )
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ namespace Server.Spells.Necromancy
|
|||
|
||||
//public override int CastDelayBase{ get{ return base.CastDelayBase; } } // Reference, 3
|
||||
|
||||
public override bool ClearHandsOnCast{ get{ return false; } }
|
||||
public override bool ClearHandsOnCast => false;
|
||||
|
||||
public override double CastDelayFastScalar{ get{ return (Core.SE? base.CastDelayFastScalar : 0); } } // Necromancer spells are not affected by fast cast items, though they are by fast cast recovery
|
||||
|
||||
|
|
@ -56,4 +56,4 @@ namespace Server.Spells.Necromancy
|
|||
return RequiredMana;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ namespace Server.Spells.Necromancy
|
|||
Caster.Target = new InternalTarget( this );
|
||||
}
|
||||
|
||||
public override bool DelayedDamage{ get{ return false; } }
|
||||
public override bool DelayedDamage => false;
|
||||
|
||||
public void Target( Mobile m )
|
||||
{
|
||||
|
|
@ -41,7 +41,7 @@ namespace Server.Spells.Necromancy
|
|||
//SpellHelper.CheckReflect( (int)this.Circle, Caster, ref m ); //Irrelevent asfter AoS
|
||||
|
||||
/* Temporarily causes intense physical pain to the target, dealing direct damage.
|
||||
* After 10 seconds the spell wears off, and if the target is still alive,
|
||||
* After 10 seconds the spell wears off, and if the target is still alive,
|
||||
* some of the Hit Points lost through Pain Spike are restored.
|
||||
*/
|
||||
|
||||
|
|
@ -137,4 +137,4 @@ namespace Server.Spells.Necromancy
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ namespace Server.Spells.Necromancy
|
|||
Caster.Target = new InternalTarget( this );
|
||||
}
|
||||
|
||||
public override bool DelayedDamage { get { return false; } }
|
||||
public override bool DelayedDamage => false;
|
||||
|
||||
public void Target( Mobile m )
|
||||
{
|
||||
|
|
@ -50,10 +50,10 @@ namespace Server.Spells.Necromancy
|
|||
Effects.PlaySound( m.Location, m.Map, 0x229 );
|
||||
|
||||
double damage = Utility.RandomMinMax( (Core.ML ? 32 : 36), 40 ) * ((300 + (GetDamageSkill( Caster ) * 9)) / 1000);
|
||||
|
||||
|
||||
double sdiBonus = (double)AosAttributes.GetValue( Caster, AosAttribute.SpellDamage )/100;
|
||||
double pvmDamage = damage * (1 + sdiBonus);
|
||||
|
||||
|
||||
if ( Core.ML && sdiBonus > 0.15 )
|
||||
sdiBonus = 0.15;
|
||||
double pvpDamage = damage * (1 + sdiBonus);
|
||||
|
|
@ -63,7 +63,7 @@ namespace Server.Spells.Necromancy
|
|||
if( map != null )
|
||||
{
|
||||
List<Mobile> targets = new List<Mobile>();
|
||||
|
||||
|
||||
if ( Caster.CanBeHarmful(m, false ) )
|
||||
targets.Add( m );
|
||||
|
||||
|
|
@ -115,4 +115,4 @@ namespace Server.Spells.Necromancy
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace Server.Spells.Necromancy
|
|||
{
|
||||
}
|
||||
|
||||
public override bool BlockedByHorrificBeast{ get{ return false; } }
|
||||
public override bool BlockedByHorrificBeast => false;
|
||||
|
||||
public override bool CheckCast()
|
||||
{
|
||||
|
|
@ -53,4 +53,4 @@ namespace Server.Spells.Necromancy
|
|||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ namespace Server.Spells.Necromancy
|
|||
{
|
||||
}
|
||||
|
||||
public override bool DelayedDamage { get { return false; } }
|
||||
public override bool DelayedDamage => false;
|
||||
|
||||
public override void OnCast()
|
||||
{
|
||||
|
|
@ -87,7 +87,7 @@ namespace Server.Spells.Necromancy
|
|||
|
||||
int sdiBonus = AosAttributes.GetValue( Caster, AosAttribute.SpellDamage );
|
||||
|
||||
// PvP spell damage increase cap of 15% from an item’s magic property in Publish 33(SE)
|
||||
// PvP spell damage increase cap of 15% from an item<EFBFBD>s magic property in Publish 33(SE)
|
||||
if( Core.SE && m.Player && Caster.Player && sdiBonus > 15 )
|
||||
sdiBonus = 15;
|
||||
|
||||
|
|
@ -106,4 +106,4 @@ namespace Server.Spells.Necromancy
|
|||
FinishSequence();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue