Removes implicit this.
This commit is contained in:
parent
04b4cfe75b
commit
83dcf536d8
533 changed files with 2804 additions and 2806 deletions
|
|
@ -185,7 +185,7 @@ namespace Server.Gumps
|
|||
else if ( p is Mobile m )
|
||||
p = m.Location;
|
||||
|
||||
Server.Commands.Add.Invoke( from, new Point3D( p ), new Point3D( p ), new[]{ m_Type.Name } );
|
||||
Commands.Add.Invoke( from, new Point3D( p ), new Point3D( p ), new[]{ m_Type.Name } );
|
||||
|
||||
from.Target = new InternalTarget( m_Type, m_SearchResults, m_SearchString, m_Page );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -419,7 +419,7 @@ namespace Server.Gumps
|
|||
|
||||
AddHtml( 20, 150, 380, 80, Color( "When enabled, only clients with an access level equal to or greater than the specified lockdown level may access the server. After setting a lockdown level, use the <em>Purge Invalid Clients</em> button to disconnect those clients without access.", LabelColor32 ), false, false );
|
||||
|
||||
AccessLevel level = Misc.AccountHandler.LockdownLevel;
|
||||
AccessLevel level = AccountHandler.LockdownLevel;
|
||||
bool isLockedDown = ( level > AccessLevel.Player );
|
||||
|
||||
AddSelectedButton( 20, 230, GetButtonID( 3, 500 ), "Not Locked Down", !isLockedDown );
|
||||
|
|
@ -1624,7 +1624,7 @@ namespace Server.Gumps
|
|||
from.SendGump( new AdminGump( from, AdminGumpPage.AccountDetails_Access_ClientIPs, 0, null, notice, a ) );
|
||||
}
|
||||
|
||||
public override void OnResponse( Server.Network.NetState sender, RelayInfo info )
|
||||
public override void OnResponse( NetState sender, RelayInfo info )
|
||||
{
|
||||
int val = info.ButtonID - 1;
|
||||
|
||||
|
|
@ -1833,9 +1833,9 @@ namespace Server.Gumps
|
|||
case 503:
|
||||
case 504:
|
||||
{
|
||||
Misc.AccountHandler.LockdownLevel = (AccessLevel)(index - 500);
|
||||
AccountHandler.LockdownLevel = (AccessLevel)(index - 500);
|
||||
|
||||
if ( Misc.AccountHandler.LockdownLevel > AccessLevel.Player )
|
||||
if ( AccountHandler.LockdownLevel > AccessLevel.Player )
|
||||
notice = "The lockdown level has been changed.";
|
||||
else
|
||||
notice = "The server is now accessible to everyone.";
|
||||
|
|
@ -1845,7 +1845,7 @@ namespace Server.Gumps
|
|||
|
||||
case 510:
|
||||
{
|
||||
AccessLevel level = Misc.AccountHandler.LockdownLevel;
|
||||
AccessLevel level = AccountHandler.LockdownLevel;
|
||||
|
||||
if ( level > AccessLevel.Player )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ namespace Server.Gumps
|
|||
AddTextField( x + 35, y + 20, 100, 20, idx );
|
||||
}
|
||||
|
||||
public override void OnResponse( Server.Network.NetState sender, RelayInfo info )
|
||||
public override void OnResponse( Network.NetState sender, RelayInfo info )
|
||||
{
|
||||
Mobile from = sender.Mobile;
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ namespace Server.Gumps
|
|||
AddButton( 265, 220, 0xF7, 0xF8, (int) Buttons.Confirm, GumpButtonType.Reply, 0 );
|
||||
}
|
||||
|
||||
public override void OnResponse( Server.Network.NetState state, RelayInfo info )
|
||||
public override void OnResponse( Network.NetState state, RelayInfo info )
|
||||
{
|
||||
if ( info.ButtonID == (int) Buttons.Confirm )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ namespace Server.Gumps
|
|||
AddHtmlLocalized( 170, 80, 75, 20, 1011012, false, false ); // CANCEL
|
||||
}
|
||||
|
||||
public override void OnResponse( Server.Network.NetState sender, RelayInfo info )
|
||||
public override void OnResponse( Network.NetState sender, RelayInfo info )
|
||||
{
|
||||
if ( info.ButtonID == 2 )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ namespace Server.Gumps
|
|||
|
||||
if ( text.Length > 0 )
|
||||
{
|
||||
if ( Guild.FindByAbbrev( text ) != null )
|
||||
if ( BaseGuild.FindByAbbrev( text ) != null )
|
||||
{
|
||||
m_Mobile.SendMessage( "{0} conflicts with the abbreviation of an existing guild.", text );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ namespace Server.Gumps
|
|||
|
||||
if ( text.Length >= 3 )
|
||||
{
|
||||
List<Guild> guilds = Utility.CastConvertList<BaseGuild, Guild>( Guild.Search( text ) );
|
||||
List<Guild> guilds = Utility.CastConvertList<BaseGuild, Guild>( BaseGuild.Search( text ) );
|
||||
|
||||
GuildGump.EnsureClosed( m_Mobile );
|
||||
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ namespace Server.Gumps
|
|||
}
|
||||
case 5: // Membership candidates
|
||||
{
|
||||
GuildGump.EnsureClosed( m_Mobile );
|
||||
EnsureClosed( m_Mobile );
|
||||
m_Mobile.SendGump( new GuildCandidatesGump( m_Mobile, m_Guild ) );
|
||||
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ namespace Server.Gumps
|
|||
|
||||
if ( text.Length > 0 )
|
||||
{
|
||||
if ( Guild.FindByName( text ) != null )
|
||||
if ( BaseGuild.FindByName( text ) != null )
|
||||
{
|
||||
m_Mobile.SendMessage( "{0} conflicts with the name of an existing guild.", text );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,9 +61,9 @@ namespace Server.Guilds
|
|||
pm.SendLocalizedMessage( 1063036, Guild.NameLimit.ToString() ); // A guild name cannot be more than ~1_val~ characters in length.
|
||||
else if ( guildAbbrev.Length > Guild.AbbrevLimit )
|
||||
pm.SendLocalizedMessage( 1063037, Guild.AbbrevLimit.ToString() ); // An abbreviation cannot exceed ~1_val~ characters in length.
|
||||
else if ( Guild.FindByAbbrev( guildAbbrev ) != null || !BaseGuildGump.CheckProfanity( guildAbbrev ) )
|
||||
else if ( BaseGuild.FindByAbbrev( guildAbbrev ) != null || !BaseGuildGump.CheckProfanity( guildAbbrev ) )
|
||||
pm.SendLocalizedMessage( 501153 ); // That abbreviation is not available.
|
||||
else if ( Guild.FindByName( guildName ) != null || !BaseGuildGump.CheckProfanity( guildName ) )
|
||||
else if ( BaseGuild.FindByName( guildName ) != null || !BaseGuildGump.CheckProfanity( guildName ) )
|
||||
pm.SendLocalizedMessage( 1063000 ); // That guild name is not available.
|
||||
else if ( !Banker.Withdraw( pm, Guild.RegistrationFee ) )
|
||||
pm.SendLocalizedMessage( 1063001, Guild.RegistrationFee.ToString() ); // You do not possess the ~1_val~ gold piece fee required to create a guild.
|
||||
|
|
|
|||
|
|
@ -105,12 +105,12 @@ namespace Server.Guilds
|
|||
TextDefinition m_LowerText;
|
||||
|
||||
public GuildDiplomacyGump( PlayerMobile pm, Guild g )
|
||||
: this( pm, g, GuildDiplomacyGump.NameComparer.Instance, true, "", 0, GuildDisplayType.All, Utility.CastConvertList<BaseGuild, Guild>( new List<BaseGuild>( Guild.List.Values ) ), (1063136 + (int)GuildDisplayType.All) )
|
||||
: this( pm, g, NameComparer.Instance, true, "", 0, GuildDisplayType.All, Utility.CastConvertList<BaseGuild, Guild>( new List<BaseGuild>( BaseGuild.List.Values ) ), (1063136 + (int)GuildDisplayType.All) )
|
||||
{
|
||||
}
|
||||
|
||||
public GuildDiplomacyGump( PlayerMobile pm, Guild g, IComparer<Guild> currentComparer, bool ascending, string filter, int startNumber, GuildDisplayType display )
|
||||
: this( pm, g, currentComparer, ascending, filter, startNumber, display, Utility.CastConvertList<BaseGuild, Guild>( new List<BaseGuild>( Guild.List.Values ) ), (1063136 + (int)display) )
|
||||
: this( pm, g, currentComparer, ascending, filter, startNumber, display, Utility.CastConvertList<BaseGuild, Guild>( new List<BaseGuild>( BaseGuild.List.Values ) ), (1063136 + (int)display) )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -120,7 +120,7 @@ namespace Server.Guilds
|
|||
}
|
||||
|
||||
public GuildDiplomacyGump( PlayerMobile pm, Guild g, bool ascending, string filter, int startNumber, List<Guild> list, TextDefinition lowerText )
|
||||
: this( pm, g, GuildDiplomacyGump.NameComparer.Instance, ascending, filter, startNumber, GuildDisplayType.All, list, lowerText )
|
||||
: this( pm, g, NameComparer.Instance, ascending, filter, startNumber, GuildDisplayType.All, list, lowerText )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -128,9 +128,9 @@ namespace Server.Guilds
|
|||
: base( pm, g, list, currentComparer, ascending, filter, startNumber,
|
||||
new[]
|
||||
{
|
||||
new InfoField<Guild>( 1062954, 280, GuildDiplomacyGump.NameComparer.Instance ), //Guild Name
|
||||
new InfoField<Guild>( 1062957, 50, GuildDiplomacyGump.AbbrevComparer.Instance ), //Abbrev
|
||||
new InfoField<Guild>( 1062958, 120, new GuildDiplomacyGump.StatusComparer( g ) ) //Guild Title
|
||||
new InfoField<Guild>( 1062954, 280, NameComparer.Instance ), //Guild Name
|
||||
new InfoField<Guild>( 1062957, 50, AbbrevComparer.Instance ), //Abbrev
|
||||
new InfoField<Guild>( 1062958, 120, new StatusComparer( g ) ) //Guild Title
|
||||
})
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ namespace Server.Guilds
|
|||
|
||||
if ( title.Length > 20 )
|
||||
from.SendLocalizedMessage( 501178 ); // That title is too long.
|
||||
else if ( !BaseGuildGump.CheckProfanity( title ) )
|
||||
else if ( !CheckProfanity( title ) )
|
||||
from.SendLocalizedMessage( 501179 ); // That title is disallowed.
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -108,13 +108,13 @@ namespace Server.Guilds
|
|||
private static InfoField<PlayerMobile>[] m_Fields =
|
||||
new[]
|
||||
{
|
||||
new InfoField<PlayerMobile>( 1062955, 130, GuildRosterGump.NameComparer.Instance ), //Name
|
||||
new InfoField<PlayerMobile>( 1062956, 80, GuildRosterGump.RankComparer.Instance ), //Rank
|
||||
new InfoField<PlayerMobile>( 1062952, 80, GuildRosterGump.LastOnComparer.Instance), //Last On
|
||||
new InfoField<PlayerMobile>( 1062953, 150, GuildRosterGump.TitleComparer.Instance ) //Guild Title
|
||||
new InfoField<PlayerMobile>( 1062955, 130, NameComparer.Instance ), //Name
|
||||
new InfoField<PlayerMobile>( 1062956, 80, RankComparer.Instance ), //Rank
|
||||
new InfoField<PlayerMobile>( 1062952, 80, LastOnComparer.Instance), //Last On
|
||||
new InfoField<PlayerMobile>( 1062953, 150, TitleComparer.Instance ) //Guild Title
|
||||
};
|
||||
|
||||
public GuildRosterGump( PlayerMobile pm, Guild g ) : this( pm, g, GuildRosterGump.LastOnComparer.Instance, false, "", 0 )
|
||||
public GuildRosterGump( PlayerMobile pm, Guild g ) : this( pm, g, LastOnComparer.Instance, false, "", 0 )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -614,7 +614,7 @@ namespace Server.Guilds
|
|||
{
|
||||
string name = Utility.FixHtml( text.Trim() );
|
||||
|
||||
if ( !BaseGuildGump.CheckProfanity( name ) )
|
||||
if ( !CheckProfanity( name ) )
|
||||
pm.SendLocalizedMessage( 1070886 ); // That alliance name is not allowed.
|
||||
else if ( name.Length > Guild.NameLimit )
|
||||
pm.SendLocalizedMessage( 1070887, Guild.NameLimit.ToString() ); // An alliance name cannot exceed ~1_val~ characters in length.
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ namespace Server.Gumps
|
|||
AddHtmlLocalized( 40, height - 30, 120, 20, 1011036, 32767, false, false ); // OKAY
|
||||
}
|
||||
|
||||
public override void OnResponse( Server.Network.NetState sender, RelayInfo info )
|
||||
public override void OnResponse( Network.NetState sender, RelayInfo info )
|
||||
{
|
||||
if ( info.ButtonID == 1 )
|
||||
m_Callback?.Invoke( sender.Mobile, m_State );
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ namespace Server.Gumps
|
|||
}
|
||||
}
|
||||
|
||||
public override void OnResponse( Server.Network.NetState sender, RelayInfo info )
|
||||
public override void OnResponse( Network.NetState sender, RelayInfo info )
|
||||
{
|
||||
if ( m_Selection == null )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ namespace Server.Gumps
|
|||
}
|
||||
}
|
||||
|
||||
public override void OnResponse( Server.Network.NetState sender, RelayInfo info )
|
||||
public override void OnResponse( Network.NetState sender, RelayInfo info )
|
||||
{
|
||||
if (m_Callback == null)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue