diff --git a/MixItUp.Base/Model/Overlay/OverlayGoalV3Model.cs b/MixItUp.Base/Model/Overlay/OverlayGoalV3Model.cs index a4821dfa1..3c2184eb2 100644 --- a/MixItUp.Base/Model/Overlay/OverlayGoalV3Model.cs +++ b/MixItUp.Base/Model/Overlay/OverlayGoalV3Model.cs @@ -4,6 +4,7 @@ using MixItUp.Base.Services.Twitch; using MixItUp.Base.Util; using MixItUp.Base.ViewModel.User; +using StreamingClient.Base.Util; using System; using System.Collections.Generic; using System.ComponentModel.Design; @@ -283,6 +284,8 @@ public override async Task ProcessEvent(UserV2ViewModel user, double amount) { if (this.CurrentSegment != null) { + Logger.Log(LogLevel.Debug, $"Processing goal amount - {amount}"); + if (this.GoalType == OverlayGoalV3Type.Followers && user.Platform == this.StreamingPlatform) { amount = 1; @@ -310,6 +313,8 @@ public override async Task ProcessEvent(UserV2ViewModel user, double amount) previousAmount = this.CounterPreviousCurrentAmount; } + Logger.Log(LogLevel.Debug, $"New amounts - {this.CurrentAmount} / {this.GoalAmount} ({this.TotalAmount})"); + if (this.CurrentAmount >= this.GoalAmount && (this.CurrentSegment != this.Segments.Last() || previousAmount < this.GoalAmount)) { IEnumerable segmentsCompleted = this.ProgressSegments(); diff --git a/MixItUp.Base/Model/Overlay/OverlayPersistentTimerV3Model.cs b/MixItUp.Base/Model/Overlay/OverlayPersistentTimerV3Model.cs index 141328f22..76ff4f4cc 100644 --- a/MixItUp.Base/Model/Overlay/OverlayPersistentTimerV3Model.cs +++ b/MixItUp.Base/Model/Overlay/OverlayPersistentTimerV3Model.cs @@ -8,6 +8,7 @@ using System.Threading; using System.Text.Json.Serialization; using MixItUp.Base.Util; +using StreamingClient.Base.Util; namespace MixItUp.Base.Model.Overlay { @@ -112,6 +113,9 @@ public override async Task ProcessEvent(UserV2ViewModel user, double amount) if (!this.paused || this.AllowAdjustmentWhilePaused) { amount = Math.Round(amount); + + Logger.Log(LogLevel.Debug, $"Processing timer amount - {amount}"); + lock (amountLock) { if (this.MaxAmount > 0 && amount > 0) @@ -128,6 +132,8 @@ public override async Task ProcessEvent(UserV2ViewModel user, double amount) this.CurrentAmount = Math.Max(this.CurrentAmount, 1); } + Logger.Log(LogLevel.Debug, $"New timer amount - {this.CurrentAmount}"); + if (amount != 0) { Dictionary properties = new Dictionary();