diff --git a/EDPlayerJournal/BGS/TransactionParser.cs b/EDPlayerJournal/BGS/TransactionParser.cs index 0295f04..91101d7 100644 --- a/EDPlayerJournal/BGS/TransactionParser.cs +++ b/EDPlayerJournal/BGS/TransactionParser.cs @@ -8,6 +8,12 @@ public class TransactionParserOptions { /// is true per default. /// public bool IgnoreExoBiology { get; set; } = true; + + /// + /// Whether to ignore influence support. Usually one only cares about the + /// primary faction for the influence. + /// + public bool IgnoreInfluenceSupport { get; set; } = false; } internal class TransactionParserContext { @@ -584,6 +590,10 @@ internal class MissionCompletedParser : TransactionParserPart { } else if (string.Compare(faction, source_faction_name, true) != 0 || (string.Compare(faction, source_faction_name) == 0 && system_address != accepted_location.SystemAddress)) { + // Whether we ignore influence support + if (options.IgnoreInfluenceSupport) { + continue; + } // Source or target faction are different, and/or the system // differs. Sometimes missions go to different systems but to // the same faction.