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.Engines.MLQuests.Gumps
{
public class QuestCancelConfirmGump : Gump
{
private bool m_CloseGumps;
private MLQuestInstance m_Instance;
private readonly bool m_CloseGumps;
private readonly MLQuestInstance m_Instance;
public QuestCancelConfirmGump(MLQuestInstance instance, bool closeGumps = true)
: base(120, 50)
@ -82,15 +82,15 @@ namespace Server.Engines.MLQuests.Gumps
switch (info.ButtonID)
{
case 7: // Okay
{
if (info.IsSwitched(2))
m_Instance.Cancel(true);
else if (info.IsSwitched(1))
m_Instance.Cancel(false);
{
if (info.IsSwitched(2))
m_Instance.Cancel(true);
else if (info.IsSwitched(1))
m_Instance.Cancel(false);
sender.Mobile.SendGump(new QuestLogGump(m_Instance.Player, m_CloseGumps));
break;
}
sender.Mobile.SendGump(new QuestLogGump(m_Instance.Player, m_CloseGumps));
break;
}
}
}
}