From 4549413b008cf4cd4eb6dfa64c582fef91995506 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Tue, 20 Dec 2022 18:48:00 +0100 Subject: [PATCH] add warning for empty mission faction --- EDPlayerJournal/BGS/TransactionParser.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/EDPlayerJournal/BGS/TransactionParser.cs b/EDPlayerJournal/BGS/TransactionParser.cs index bf1a6dc..5d021c0 100644 --- a/EDPlayerJournal/BGS/TransactionParser.cs +++ b/EDPlayerJournal/BGS/TransactionParser.cs @@ -631,6 +631,14 @@ internal class MissionFailedParser : TransactionParserPart { return; } + if (string.IsNullOrEmpty(mission.Faction)) { + transactions.AddIncomplete(new MissionFailed(), + "Could not determine for what faction you failed a mission. This happens if the " + + "mission acceptance is not within the given time frame.", + entry + ); + } + transactions.Add(new MissionFailed(entry) { Faction = mission?.Faction, Mission = mission,