add option to ignore powerplay for now
This commit is contained in:
parent
aeaa6b5220
commit
2905696641
@ -16,12 +16,14 @@ internal class PowerplayParser : ITransactionParserPart {
|
|||||||
context.CurrentMerits = p.Merits;
|
context.CurrentMerits = p.Merits;
|
||||||
|
|
||||||
if (context.LastMerits != context.CurrentMerits) {
|
if (context.LastMerits != context.CurrentMerits) {
|
||||||
transactions.Add(new MeritsGained(entry) {
|
if (!options.IgnorePowerplay) {
|
||||||
Merits = ((long)(context.CurrentMerits - context.LastMerits)),
|
transactions.Add(new MeritsGained(entry) {
|
||||||
Power = p.Power,
|
Merits = ((long)(context.CurrentMerits - context.LastMerits)),
|
||||||
System = context.CurrentSystem,
|
Power = p.Power,
|
||||||
Faction = p.Power,
|
System = context.CurrentSystem,
|
||||||
});
|
Faction = p.Power,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
context.LastMerits = context.CurrentMerits;
|
context.LastMerits = context.CurrentMerits;
|
||||||
|
@ -16,6 +16,12 @@ public class TransactionParserOptions {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IgnoreInfluenceSupport { get; set; } = false;
|
public bool IgnoreInfluenceSupport { get; set; } = false;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 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`.
|
||||||
|
/// </summary>
|
||||||
|
public bool IgnorePowerplay { get; set; } = true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to ignore market buy. Buying from a market gives a small amount
|
/// 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
|
/// of INF if it is sold to a high demand market, but generally one buys from
|
||||||
|
Loading…
Reference in New Issue
Block a user