Merge pull request #42 from CWXDEV/main

fix encoding
This commit is contained in:
CWX
2025-01-12 16:55:37 +00:00
committed by GitHub
10 changed files with 17 additions and 9 deletions
+3 -1
View File
@@ -1,4 +1,5 @@
using Core.Controllers;
using Core.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Models.Eft.HttpResponse;
using Core.Models.Eft.Profile;
@@ -6,6 +7,7 @@ using Core.Utils;
namespace Core.Callbacks;
[Injectable(InjectableTypeOverride = typeof(AchievementCallbacks))]
public class AchievementCallbacks
{
protected AchievementController _achievementController;
+1
View File
@@ -9,6 +9,7 @@ using Core.Utils;
namespace Core.Callbacks;
[Injectable(InjectableTypeOverride = typeof(OnUpdate), TypePriority = OnUpdateOrder.DialogCallbacks)]
[Injectable(InjectableTypeOverride = typeof(DialogueCallbacks))]
public class DialogueCallbacks : OnUpdate
{
protected HashUtil _hashUtil;
+1
View File
@@ -14,6 +14,7 @@ using Core.Utils;
namespace Core.Callbacks;
[Injectable(InjectableTypeOverride = typeof(OnUpdate), TypePriority = OnUpdateOrder.InsuranceCallbacks)]
[Injectable(InjectableTypeOverride = typeof(InsuranceCallbacks))]
public class InsuranceCallbacks : OnUpdate
{
protected InsuranceController _insuranceController;
+1
View File
@@ -14,6 +14,7 @@ namespace Core.Callbacks;
[Injectable(InjectableTypeOverride = typeof(OnLoad), TypePriority = OnLoadOrder.RagfairCallbacks)]
[Injectable(InjectableTypeOverride = typeof(OnUpdate), TypePriority = OnUpdateOrder.RagfairCallbacks)]
[Injectable(InjectableTypeOverride = typeof(RagfairCallbacks))]
public class RagfairCallbacks : OnLoad, OnUpdate
{
protected HttpResponseUtil _httpResponseUtil;
+1
View File
@@ -7,6 +7,7 @@ using Core.Models.Spt.Config;
using Core.Models.Spt.Weather;
using Core.Servers;
using Core.Services;
using ILogger = Core.Models.Utils.ILogger;
namespace Core.Controllers;
+1 -1
View File
@@ -1,4 +1,4 @@
using Core.Annotations;
using Core.Annotations;
using Core.Helpers;
using Core.Models.Eft.Weather;
using Core.Models.Enums;
+5 -4
View File
@@ -1,5 +1,6 @@
using Core.Annotations;
using Core.Annotations;
using Core.Models.Spt.Helper;
using ILogger = Core.Models.Utils.ILogger;
namespace Core.Helpers;
@@ -42,17 +43,17 @@ public class WeightedRandomHelper
{
if (items.Count == 0)
{
_logger.LogError("Items must not be empty");
_logger.Error("Items must not be empty");
}
if (weights.Count == 0)
{
_logger.LogError("Item weights must not be empty");
_logger.Error("Item weights must not be empty");
}
if (items.Count != weights.Count)
{
_logger.LogError("Items and weight inputs must be of the same length");
_logger.Error("Items and weight inputs must be of the same length");
}
// Preparing the cumulative weights list.
+1 -1
View File
@@ -1,4 +1,4 @@
using System.Text.Json.Serialization;
using System.Text.Json.Serialization;
using Core.Models.Common;
using Core.Models.Enums;
using Core.Utils.Json.Converters;
+2 -1
View File
@@ -1,4 +1,4 @@
using Core.Annotations;
using Core.Annotations;
using Core.Generators;
using Core.Helpers;
using Core.Models.Eft.Weather;
@@ -6,6 +6,7 @@ using Core.Models.Enums;
using Core.Models.Spt.Config;
using Core.Servers;
using Core.Utils;
using ILogger = Core.Models.Utils.ILogger;
namespace Core.Services;
+1 -1
View File
@@ -1,4 +1,4 @@
using Core.Annotations;
using Core.Annotations;
namespace Core.Utils;