master #3

Open
cacahuetes wants to merge 653 commits from liza/Questionable:master into cacahuetes-ShB-Healer
Showing only changes of commit 619b5431d5 - Show all commits

View File

@ -91,6 +91,8 @@ internal sealed class QuestRegistry
_logger.LogInformation("Loading quests from assembly"); _logger.LogInformation("Loading quests from assembly");
foreach ((ElementId questId, QuestRoot questRoot) in AssemblyQuestLoader.GetQuests()) foreach ((ElementId questId, QuestRoot questRoot) in AssemblyQuestLoader.GetQuests())
{
try
{ {
var questInfo = _questData.GetQuestInfo(questId); var questInfo = _questData.GetQuestInfo(questId);
if (questInfo is LeveInfo leveInfo) if (questInfo is LeveInfo leveInfo)
@ -104,6 +106,11 @@ internal sealed class QuestRegistry
}; };
_quests[quest.Id] = quest; _quests[quest.Id] = quest;
} }
catch (Exception e)
{
_logger.LogWarning("Not loading unknown quest {QuestId} from assembly: {Message}", questId, e.Message);
}
}
_logger.LogInformation("Loaded {Count} quests from assembly", _quests.Count); _logger.LogInformation("Loaded {Count} quests from assembly", _quests.Count);
} }