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

@ -5,8 +5,8 @@ namespace Server.Gumps
{
public class GuildWarAdminGump : Gump
{
private Guild m_Guild;
private Mobile m_Mobile;
private readonly Guild m_Guild;
private readonly Mobile m_Mobile;
public GuildWarAdminGump(Mobile from, Guild guild) : base(20, 30)
{
@ -71,47 +71,47 @@ namespace Server.Gumps
switch (info.ButtonID)
{
case 1: // Declare war
{
m_Mobile.SendLocalizedMessage(1018001); // Declare war through search - Enter Guild Name:
m_Mobile.Prompt = new GuildDeclareWarPrompt(m_Mobile, m_Guild);
{
m_Mobile.SendLocalizedMessage(1018001); // Declare war through search - Enter Guild Name:
m_Mobile.Prompt = new GuildDeclareWarPrompt(m_Mobile, m_Guild);
break;
}
break;
}
case 2: // Declare peace
{
GuildGump.EnsureClosed(m_Mobile);
m_Mobile.SendGump(new GuildDeclarePeaceGump(m_Mobile, m_Guild));
{
GuildGump.EnsureClosed(m_Mobile);
m_Mobile.SendGump(new GuildDeclarePeaceGump(m_Mobile, m_Guild));
break;
}
break;
}
case 3: // Accept war
{
GuildGump.EnsureClosed(m_Mobile);
m_Mobile.SendGump(new GuildAcceptWarGump(m_Mobile, m_Guild));
{
GuildGump.EnsureClosed(m_Mobile);
m_Mobile.SendGump(new GuildAcceptWarGump(m_Mobile, m_Guild));
break;
}
break;
}
case 4: // Reject war
{
GuildGump.EnsureClosed(m_Mobile);
m_Mobile.SendGump(new GuildRejectWarGump(m_Mobile, m_Guild));
{
GuildGump.EnsureClosed(m_Mobile);
m_Mobile.SendGump(new GuildRejectWarGump(m_Mobile, m_Guild));
break;
}
break;
}
case 5: // Rescind declarations
{
GuildGump.EnsureClosed(m_Mobile);
m_Mobile.SendGump(new GuildRescindDeclarationGump(m_Mobile, m_Guild));
{
GuildGump.EnsureClosed(m_Mobile);
m_Mobile.SendGump(new GuildRescindDeclarationGump(m_Mobile, m_Guild));
break;
}
break;
}
case 6: // Return
{
GuildGump.EnsureClosed(m_Mobile);
m_Mobile.SendGump(new GuildmasterGump(m_Mobile, m_Guild));
{
GuildGump.EnsureClosed(m_Mobile);
m_Mobile.SendGump(new GuildmasterGump(m_Mobile, m_Guild));
break;
}
break;
}
}
}
}