Removes implicit this.
This commit is contained in:
parent
04b4cfe75b
commit
83dcf536d8
533 changed files with 2804 additions and 2806 deletions
|
|
@ -90,8 +90,8 @@ namespace Server.Mobiles
|
|||
|
||||
if ( version == 0 )
|
||||
{
|
||||
Server.SkillHandlers.AnimalTaming.ScaleStats( this, 0.50 );
|
||||
Server.SkillHandlers.AnimalTaming.ScaleSkills( this, 0.80, 0.90 ); // 90% * 80% = 72% of original skills trainable to 90%
|
||||
SkillHandlers.AnimalTaming.ScaleStats( this, 0.50 );
|
||||
SkillHandlers.AnimalTaming.ScaleSkills( this, 0.80, 0.90 ); // 90% * 80% = 72% of original skills trainable to 90%
|
||||
Skills[SkillName.Magery].Base = Skills[SkillName.Magery].Cap; // Greater dragons have a 90% cap reduction and 90% skill reduction on magery
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -167,15 +167,15 @@ namespace Server.Mobiles
|
|||
|
||||
public void Earthquake()
|
||||
{
|
||||
Map map = this.Map;
|
||||
Map map = Map;
|
||||
if (map == null)
|
||||
return;
|
||||
ArrayList targets = new ArrayList();
|
||||
foreach (Mobile m in this.GetMobilesInRange(8))
|
||||
foreach (Mobile m in GetMobilesInRange(8))
|
||||
{
|
||||
if (m == this || !CanBeHarmful(m))
|
||||
continue;
|
||||
if (m is BaseCreature creature && (creature.Controlled || creature.Summoned || creature.Team != this.Team))
|
||||
if (m is BaseCreature creature && (creature.Controlled || creature.Summoned || creature.Team != Team))
|
||||
targets.Add(m);
|
||||
else if (m.Player)
|
||||
targets.Add(m);
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ namespace Server.Mobiles
|
|||
|
||||
public void SpawnPixies( Mobile target )
|
||||
{
|
||||
Map map = this.Map;
|
||||
Map map = Map;
|
||||
|
||||
if ( map == null )
|
||||
return;
|
||||
|
|
@ -89,11 +89,11 @@ namespace Server.Mobiles
|
|||
{
|
||||
Pixie pixie = new Pixie();
|
||||
|
||||
pixie.Team = this.Team;
|
||||
pixie.Team = Team;
|
||||
pixie.FightMode = FightMode.Closest;
|
||||
|
||||
bool validLocation = false;
|
||||
Point3D loc = this.Location;
|
||||
Point3D loc = Location;
|
||||
|
||||
for ( int j = 0; !validLocation && j < 10; ++j )
|
||||
{
|
||||
|
|
@ -101,7 +101,7 @@ namespace Server.Mobiles
|
|||
int y = Y + Utility.Random( 3 ) - 1;
|
||||
int z = map.GetAverageZ( x, y );
|
||||
|
||||
if ( validLocation = map.CanFit( x, y, this.Z, 16, false, false ) )
|
||||
if ( validLocation = map.CanFit( x, y, Z, 16, false, false ) )
|
||||
loc = new Point3D( x, y, Z );
|
||||
else if ( validLocation = map.CanFit( x, y, z, 16, false, false ) )
|
||||
loc = new Point3D( x, y, z );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue