Adds style cop (#109)
This commit is contained in:
parent
3e715bcb60
commit
556a17aba8
1725 changed files with 33831 additions and 38046 deletions
|
|
@ -6,8 +6,8 @@ namespace Server.Engines.MLQuests.Gumps
|
|||
{
|
||||
public class QuestLogDetailedGump : BaseQuestGump
|
||||
{
|
||||
private bool m_CloseGumps;
|
||||
private MLQuestInstance m_Instance;
|
||||
private readonly bool m_CloseGumps;
|
||||
private readonly MLQuestInstance m_Instance;
|
||||
|
||||
public QuestLogDetailedGump(MLQuestInstance instance, bool closeGumps = true)
|
||||
: base(1046026) // Quest Log
|
||||
|
|
@ -51,23 +51,23 @@ namespace Server.Engines.MLQuests.Gumps
|
|||
switch (info.ButtonID)
|
||||
{
|
||||
case 1: // Resign
|
||||
{
|
||||
// TODO: Custom reward loss protection? OSI doesn't have this
|
||||
//if ( m_Instance.ClaimReward )
|
||||
// pm.SendMessage( "You cannot cancel a quest with rewards pending." );
|
||||
//else
|
||||
{
|
||||
// TODO: Custom reward loss protection? OSI doesn't have this
|
||||
// if (m_Instance.ClaimReward)
|
||||
// pm.SendMessage( "You cannot cancel a quest with rewards pending." );
|
||||
// else
|
||||
|
||||
sender.Mobile.SendGump(new QuestCancelConfirmGump(m_Instance, m_CloseGumps));
|
||||
sender.Mobile.SendGump(new QuestCancelConfirmGump(m_Instance, m_CloseGumps));
|
||||
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2: // Okay
|
||||
{
|
||||
sender.Mobile.SendGump(new QuestLogGump(m_Instance.Player, m_CloseGumps));
|
||||
{
|
||||
sender.Mobile.SendGump(new QuestLogGump(m_Instance.Player, m_CloseGumps));
|
||||
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue