Archived
1
0
This repository has been archived on 2021-10-19. You can view files and clone it, but cannot push or open issues or pull requests.
nonabgs/BGS/SellMicroResources.cs

22 lines
616 B
C#

using System.Linq;
using EDJournal;
namespace NonaBGS.BGS {
public class SellMicroResources : LogEntry {
public int TotalSum {
get {
return Entries
.Where(x => x.GetType() == typeof(SellMicroResourcesEntry))
.Sum(x => (x as SellMicroResourcesEntry).Price)
;
}
}
public override string ToString() {
return string.Format("Sell Micro Resources: {0}", Credits.FormatCredits(TotalSum));
}
public override bool OnlyControllingFaction => true;
}
}