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

@ -31,7 +31,7 @@ namespace Server.Engines.ConPVP
AddButton(240, 25, 0xFB1, 0xFB3, 3);
//AddButton( 223, 54, 0x265A, 0x265A, 4, );
// AddButton( 223, 54, 0x265A, 0x265A, 4, );
AddHtml(35, 25, 230, 20, Center("Participant Setup"));
@ -58,11 +58,11 @@ namespace Server.Engines.ConPVP
}
}
public Mobile From{ get; }
public Mobile From { get; }
public DuelContext Context{ get; }
public DuelContext Context { get; }
public Participant Participant{ get; }
public Participant Participant { get; }
public string Center(string text) => $"<CENTER>{text}</CENTER>";
@ -118,7 +118,7 @@ namespace Server.Engines.ConPVP
{
/*Container cont = m_Participant.Stakes;
if ( cont != null )
if (cont != null)
cont.Delete();*/
Context.Participants.Remove(Participant);
@ -130,13 +130,13 @@ namespace Server.Engines.ConPVP
From.SendGump(new ParticipantGump(From, Context, Participant));
}
}
/*else if ( bid == 4 )
/*else if (bid == 4)
{
m_From.SendGump( new ParticipantGump( m_From, m_Context, m_Participant ) );
Container cont = m_Participant.Stakes;
if ( cont != null && !cont.Deleted )
if (cont != null && !cont.Deleted)
{
cont.DisplayTo( m_From );
@ -178,9 +178,9 @@ namespace Server.Engines.ConPVP
private class ParticipantTarget : Target
{
private DuelContext m_Context;
private int m_Index;
private Participant m_Participant;
private readonly DuelContext m_Context;
private readonly int m_Index;
private readonly Participant m_Participant;
public ParticipantTarget(DuelContext context, Participant p, int index) : base(12, false, TargetFlags.None)
{