2024-09-17 18:49:18 +02:00
|
|
|
|
namespace EDPlayerJournal.Entries;
|
|
|
|
|
|
2022-11-01 18:01:28 +01:00
|
|
|
|
public class MultiSellExplorationDataEntry : Entry {
|
|
|
|
|
protected override void Initialise() {
|
2024-09-17 18:49:18 +02:00
|
|
|
|
TotalEarnings = JSON.Value<long?>("TotalEarnings") ?? 0;
|
|
|
|
|
BaseValue = JSON.Value<long?>("BaseValue") ?? 0;
|
|
|
|
|
Bonus = JSON.Value<long?>("Bonus") ?? 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public long Total {
|
|
|
|
|
get { return BaseValue + Bonus; }
|
2022-11-01 18:01:28 +01:00
|
|
|
|
}
|
|
|
|
|
|
2024-09-17 18:49:18 +02:00
|
|
|
|
public long BaseValue { get; set; } = 0;
|
|
|
|
|
|
|
|
|
|
public long Bonus { get; set; } = 0;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Total Earnings are the actual earnings without bonus. So this
|
|
|
|
|
/// value is BaseValue minus any percent a crew pilot takes.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public long TotalEarnings { get; set; } = 0;
|
2022-11-01 18:01:28 +01:00
|
|
|
|
}
|