fix quest rewards being borked

This commit is contained in:
CWX
2025-01-22 14:29:22 +00:00
parent 57fc237d64
commit 785efd8678
3 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -1121,7 +1121,7 @@ public class QuestHelper(
}
}
return questsToShowPlayer;
return UpdateQuestsForGameEdition(questsToShowPlayer, profile.Info.GameVersion);
}
/**
@@ -1141,6 +1141,9 @@ public class QuestHelper(
var propsAsDict = quest.Rewards.GetAllPropsAsDict<List<Reward>>();
foreach (var rewardType in propsAsDict)
{
if (rewardType.Value is null)
continue;
propsAsDict[rewardType.Key] = propsAsDict[rewardType.Key]
.Where(
reward =>
@@ -12,6 +12,7 @@ public record Reward
public string? Id { get; set; }
[JsonPropertyName("type")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public RewardType? Type { get; set; }
[JsonPropertyName("index")]
+1
View File
@@ -32,6 +32,7 @@ public class JsonUtil
new EftEnumConverter<BonusSkillType>(),
new EftEnumConverter<NotificationEventType>(),
new EftEnumConverter<QuestTypeEnum>(),
new EftEnumConverter<RewardType>(),
new BaseInteractionRequestDataConverter()
}
};