add warning for empty mission faction

This commit is contained in:
Florian Stinglmayr 2022-12-20 18:48:00 +01:00
parent f32f1f7dff
commit 4549413b00

View File

@ -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,