From f3b9555ac14130e379288ef76e8f61fda5c43933 Mon Sep 17 00:00:00 2001 From: Chomp Date: Mon, 13 Jan 2025 13:30:16 +0000 Subject: [PATCH] Fixed issue with `QuestRewardType` --- Core/Models/Eft/Common/Tables/Quest.cs | 2 +- Core/Models/Enums/QuestRewardType.cs | 7 ++++--- Core/Utils/JsonUtil.cs | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Core/Models/Eft/Common/Tables/Quest.cs b/Core/Models/Eft/Common/Tables/Quest.cs index d72e87aa..8b5b12fd 100644 --- a/Core/Models/Eft/Common/Tables/Quest.cs +++ b/Core/Models/Eft/Common/Tables/Quest.cs @@ -504,7 +504,7 @@ public class QuestReward public string? Id { get; set; } [JsonPropertyName("type")] - public string? Type { get; set; } // QuestRewardType + public QuestRewardType? Type { get; set; } // QuestRewardType [JsonPropertyName("index")] public int? Index { get; set; } diff --git a/Core/Models/Enums/QuestRewardType.cs b/Core/Models/Enums/QuestRewardType.cs index 8e20707b..f91ce754 100644 --- a/Core/Models/Enums/QuestRewardType.cs +++ b/Core/Models/Enums/QuestRewardType.cs @@ -1,4 +1,4 @@ -namespace Core.Models.Enums; +namespace Core.Models.Enums; public enum QuestRewardType { @@ -15,5 +15,6 @@ public enum QuestRewardType Achievement, Pockets, CustomizationOffer, - CustomizationDirect -} \ No newline at end of file + CustomizationDirect, + ExtraDailyQuest +} diff --git a/Core/Utils/JsonUtil.cs b/Core/Utils/JsonUtil.cs index 0ec9f79b..0020128a 100644 --- a/Core/Utils/JsonUtil.cs +++ b/Core/Utils/JsonUtil.cs @@ -23,7 +23,8 @@ public class JsonUtil new EftEnumConverter(), new EftEnumConverter(), new EftEnumConverter(), - new EftEnumConverter() + new EftEnumConverter(), + new EftEnumConverter() } }; private static readonly JsonSerializerOptions jsonSerializerOptionsIndented = new(jsonSerializerOptionsNoIndent)