Updates Combat Packets & Moves Tracking to Content (#298)

- [X] Changes outgoing combat packets
- [X] Moves quest arrow to PlayerMobile and moves quest arrow packets to content.

Bumps release version
This commit is contained in:
Kamron Batman 2020-11-01 21:33:01 -08:00 • committed by GitHub
parent 55935d30b4
commit 6f5cb00cdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 373 additions and 319 deletions

View file

@ -196,14 +196,16 @@ namespace Server.Mobiles
private bool m_NoDeltaRecursion;
private int
m_NonAutoreinsuredItems; // number of items that could not be automatically reinsured because gold in bank was not enough
// number of items that could not be automatically reinsured because gold in bank was not enough
private int m_NonAutoreinsuredItems;
private DateTime m_SavagePaintExpiration;
private TimeSpan m_ShortTermElapse;
private DateTime[] m_StuckMenuUses;
private QuestArrow m_QuestArrow;
public PlayerMobile()
{
AutoStabled = new List<Mobile>();
@ -794,6 +796,23 @@ namespace Server.Mobiles
public HonorContext ReceivedHonorContext { get; set; }
public QuestArrow QuestArrow
{
get => m_QuestArrow;
set
{
if (m_QuestArrow != value)
{
m_QuestArrow?.Stop();
m_QuestArrow = value;
}
}
}
public void ClearQuestArrow() => m_QuestArrow = null;
public override void ToggleFlying()
{
if (Race != Race.Gargoyle)
@ -1627,6 +1646,7 @@ namespace Server.Mobiles
pm.Quest?.StopTimer();
pm.SpeechLog = null;
pm.ClearQuestArrow();
pm.LastOnline = DateTime.UtcNow;
}