add option to ignore powerplay for now
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user