Removes implicit this.

This commit is contained in:
Kamron Batman 2018-09-14 12:56:58 -07:00
parent 04b4cfe75b
commit 83dcf536d8
533 changed files with 2804 additions and 2806 deletions

View file

@ -592,7 +592,7 @@ namespace Server.Factions
sigils[i].ReturnHome();
}
List<Faction> factions = Faction.Factions;
List<Faction> factions = Factions;
for ( int i = 0; i < factions.Count; ++i )
{
@ -644,7 +644,7 @@ namespace Server.Factions
sigils[i].ReturnHome();
}
List<Faction> factions = Faction.Factions;
List<Faction> factions = Factions;
for ( int i = 0; i < factions.Count; ++i )
{
@ -997,7 +997,7 @@ namespace Server.Factions
if ( smallest == null )
return true; // sanity
if ( StabilityFactor > 0 && (((this.Members.Count + influx) * 100) / StabilityFactor) > smallest.Members.Count )
if ( StabilityFactor > 0 && (((Members.Count + influx) * 100) / StabilityFactor) > smallest.Members.Count )
return false;
return true;
@ -1052,7 +1052,7 @@ namespace Server.Factions
{
Faction victimFaction = bc.FactionAllegiance;
if ( bc.Map == Faction.Facet && victimFaction != null && killerState.Faction != victimFaction )
if ( bc.Map == Facet && victimFaction != null && killerState.Faction != victimFaction )
{
int silver = killerState.Faction.AwardSilver( killer, bc.FactionSilverWorth );
@ -1061,7 +1061,7 @@ namespace Server.Factions
}
#region Ethics
if ( bc.Map == Faction.Facet && bc.GetEthicAllegiance( killer ) == BaseCreature.Allegiance.Enemy )
if ( bc.Map == Facet && bc.GetEthicAllegiance( killer ) == BaseCreature.Allegiance.Enemy )
{
Ethics.Player killerEPL = Ethics.Player.Find( killer );

View file

@ -26,7 +26,7 @@ namespace Server.Factions
get
{
if ( m_Factions == null )
Reflector.ProcessTypes();
ProcessTypes();
return m_Factions;
}

View file

@ -13,7 +13,7 @@ namespace Server.Factions
set => m_Faction = value;
}
public StrongholdRegion( Faction faction ) : base( faction.Definition.FriendlyName, Faction.Facet, Region.DefaultPriority, faction.Definition.Stronghold.Area )
public StrongholdRegion( Faction faction ) : base( faction.Definition.FriendlyName, Faction.Facet, DefaultPriority, faction.Definition.Stronghold.Area )
{
m_Faction = faction;

View file

@ -436,7 +436,7 @@ namespace Server.Factions
Sheriff = null;
Finance = null;
TownMonolith monolith = this.Monolith;
TownMonolith monolith = Monolith;
if ( monolith != null )
monolith.Faction = f;