forked from liza/Questionable
master #3
@ -91,6 +91,8 @@ internal sealed class QuestRegistry
|
||||
_logger.LogInformation("Loading quests from assembly");
|
||||
|
||||
foreach ((ElementId questId, QuestRoot questRoot) in AssemblyQuestLoader.GetQuests())
|
||||
{
|
||||
try
|
||||
{
|
||||
var questInfo = _questData.GetQuestInfo(questId);
|
||||
if (questInfo is LeveInfo leveInfo)
|
||||
@ -104,6 +106,11 @@ internal sealed class QuestRegistry
|
||||
};
|
||||
_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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user