Fix quests
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user