Fix quests

This commit is contained in:
CWX
2025-01-17 19:20:11 +00:00
parent d862f845fd
commit 6622f4767c
4 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ public class AchievementController
{
return new GetAchievementsResponse
{
Achievements = _databaseService.GetAchievements()
Elements = _databaseService.GetAchievements()
};
}
@@ -83,6 +83,8 @@ public class RepeatableQuestController
public List<PmcDataRepeatableQuest> GetClientRepeatableQuests(string sessionID)
{
_logger.Error("BYPASSED GetClientRepeatableQuests");
return new();
var returnData = new List<PmcDataRepeatableQuest>();
var fullProfile = _profileHelper.GetFullProfile(sessionID);
var pmcData = fullProfile.CharacterData.PmcData;
@@ -136,7 +138,7 @@ public class RepeatableQuestController
{
quest = _repeatableQuestGenerator.GenerateRepeatableQuest(
sessionID,
pmcData.Info.Level,
pmcData.Info.Level ?? 0,
pmcData.TradersInfo,
questTypePool,
repeatableConfig);
@@ -295,6 +297,8 @@ public class RepeatableQuestController
private QuestTypePool GenerateQuestPool(RepeatableQuestConfig repeatableConfig, int? pmcLevel)
{
_logger.Error("BYPASSED GenerateQuestPool");
return new();
var questPool = CreateBaseQuestPool(repeatableConfig);
// Get the allowed locations based on the PMC's level
@@ -1,8 +1,10 @@
using Core.Models.Eft.Common.Tables;
using System.Text.Json.Serialization;
using Core.Models.Eft.Common.Tables;
namespace Core.Models.Eft.Profile;
public record GetAchievementsResponse
{
public List<Achievement>? Achievements { get; set; }
[JsonPropertyName("elements")]
public List<Achievement>? Elements { get; set; }
}
+2 -1
View File
@@ -1,9 +1,10 @@
using System.Text.Json.Serialization;
using Core.Models.Enums;
using Core.Models.Utils;
namespace Core.Models.Eft.Ragfair;
public record SearchRequestData
public record SearchRequestData : IRequestData
{
[JsonPropertyName("page")]
public int? Page { get; set; }