Compare commits

..

2 Commits

Author SHA1 Message Date
86d27fb2a3 improve organic data formatting 2022-12-14 20:18:20 +01:00
271b151a72 fix newlines in mission log 2022-12-14 20:05:57 +01:00
2 changed files with 11 additions and 3 deletions

View File

@ -8,11 +8,17 @@ public class BioData {
public string? SpeciesLocalised { get; set; }
public long Value { get; set; } = 0;
public long Bonus { get; set; } = 0;
public long TotalValue => Value + Bonus;
public long TotalValue {
get {
return Value + Bonus;
}
}
}
public class SellOrganicDataEntry : Entry {
public long MarketID { get; set; }
public List<BioData> BioData => new List<BioData>();
public List<BioData> BioData { get; } = new();
protected override void Initialise() {
MarketID = JSON.Value<long?>("MarketID") ?? 0;

View File

@ -54,9 +54,11 @@ public class MissionFormat : LogFormatter {
if (passengers.ContainsKey(mission.Key)) {
output.AppendFormat(" ({0} Passengers)", passengers[mission.Key]);
}
output.Append("\n");
}
output.Append("\n\n");
output.Append("\n");
foreach (InfluenceSupport inf in support) {
output.Append(inf.ToString());