add option to ignore powerplay for now

This commit is contained in:
2024-11-14 13:33:49 +01:00
parent aeaa6b5220
commit 2905696641
2 changed files with 14 additions and 6 deletions

View File

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