diff --git a/EDPlayerJournal/BGS/Parsers/PowerplayParser.cs b/EDPlayerJournal/BGS/Parsers/PowerplayParser.cs index 2550628..a808f23 100644 --- a/EDPlayerJournal/BGS/Parsers/PowerplayParser.cs +++ b/EDPlayerJournal/BGS/Parsers/PowerplayParser.cs @@ -16,12 +16,14 @@ internal class PowerplayParser : ITransactionParserPart { context.CurrentMerits = p.Merits; if (context.LastMerits != context.CurrentMerits) { - transactions.Add(new MeritsGained(entry) { - Merits = ((long)(context.CurrentMerits - context.LastMerits)), - Power = p.Power, - System = context.CurrentSystem, - Faction = p.Power, - }); + if (!options.IgnorePowerplay) { + transactions.Add(new MeritsGained(entry) { + Merits = ((long)(context.CurrentMerits - context.LastMerits)), + Power = p.Power, + System = context.CurrentSystem, + Faction = p.Power, + }); + } } context.LastMerits = context.CurrentMerits; diff --git a/EDPlayerJournal/BGS/TransactionParser.cs b/EDPlayerJournal/BGS/TransactionParser.cs index e34240a..47f86d1 100644 --- a/EDPlayerJournal/BGS/TransactionParser.cs +++ b/EDPlayerJournal/BGS/TransactionParser.cs @@ -16,6 +16,12 @@ public class TransactionParserOptions { /// public bool IgnoreInfluenceSupport { get; set; } = false; + /// + /// Whether we ignore power play and merits gained for now. Support for this + /// is experimental at the moment, so that is why it ist `true`. + /// + public bool IgnorePowerplay { get; set; } = true; + /// /// Whether to ignore market buy. Buying from a market gives a small amount /// of INF if it is sold to a high demand market, but generally one buys from