cleanup: Fixes bugs and cleans up code (#660)

This commit is contained in:
Kamron Batman 2021-07-19 20:49:59 -07:00 • committed by GitHub
parent 1de0b656a9
commit 679e8100f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
99 changed files with 160 additions and 346 deletions

View file

@ -11,12 +11,10 @@ namespace Server.Gumps
{
private readonly List<Mobile> m_Killers;
private int m_Idx;
private Mobile m_Victum;
private ReportMurdererGump(Mobile victum, List<Mobile> killers, int idx = 0) : base(0, 0)
private ReportMurdererGump(List<Mobile> killers, int idx = 0) : base(0, 0)
{
m_Killers = killers;
m_Victum = victum;
m_Idx = idx;
BuildGump();
}
@ -178,7 +176,7 @@ namespace Server.Gumps
m_Idx++;
if (m_Idx < m_Killers.Count)
{
from.SendGump(new ReportMurdererGump(from, m_Killers, m_Idx));
from.SendGump(new ReportMurdererGump( m_Killers, m_Idx));
}
}
@ -195,7 +193,7 @@ namespace Server.Gumps
protected override void OnTick()
{
m_Victim.SendGump(new ReportMurdererGump(m_Victim, m_Killers));
m_Victim.SendGump(new ReportMurdererGump(m_Killers));
}
}
}