public void DpsDequeue() { if (dpsStopwatch.ElapsedMilliseconds >= DPS_POP_TIME) { if (DpsQueue.Count > 0) DpsQueue.RemoveLast(); dpsStopwatch.Restart(); } }
public void DpsRefresh() { var chechTime = DpsQueue.Count > 0 ? DPS_CHECK_TIME : DPS_FAST_CHECK_TIME; if (dpsStopwatch.ElapsedMilliseconds >= chechTime) { var hp = GetFullHp(); if (hp > -1000000 && hp < 10000000 && _lastHp != hp) { DpsQueue.AddFirst(-(_lastHp - hp)); if (DpsQueue.Count > Settings.FloatingCombatStackSize) { DpsQueue.RemoveLast(); dpsStopwatch.Restart(); } _lastHp = hp; } } }