Adds style cop (#109)

This commit is contained in:
Kamron Batman 2020-04-26 00:16:02 -07:00 committed by GitHub
parent 3e715bcb60
commit 556a17aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1725 changed files with 33831 additions and 38046 deletions

View file

@ -6,8 +6,8 @@ namespace Server.Gumps
{
public class GuildRecruitTarget : Target
{
private Guild m_Guild;
private Mobile m_Mobile;
private readonly Guild m_Guild;
private readonly Mobile m_Mobile;
public GuildRecruitTarget(Mobile m, Guild guild) : base(10, false, TargetFlags.None)
{
@ -53,9 +53,6 @@ namespace Server.Gumps
{
m_Mobile.SendLocalizedMessage(501166); // You can only recruit candidates who are not already in a guild.
}
#region Factions
else if (guildFaction != targetFaction)
{
if (guildFaction == null)
@ -71,9 +68,6 @@ namespace Server.Gumps
// OSI does this quite strangely, so we'll just do it this way
m_Mobile.SendMessage("That person is quitting their faction and so you may not recruit them.");
}
#endregion
else if (m_Mobile.AccessLevel >= AccessLevel.GameMaster || m_Guild.Leader == m_Mobile)
{
m_Guild.Accepted.Add(m);