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#
Raw Normal View History

using System.Linq;
2021-08-25 16:36:57 +02:00
using EDJournal;
2021-07-09 11:03:30 +02:00
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() {
2021-08-01 15:01:33 +02:00
return string.Format("Sell Micro Resources: {0}", Credits.FormatCredits(TotalSum));
2021-07-09 11:03:30 +02:00
}
public override bool OnlyControllingFaction => true;
2021-07-09 11:03:30 +02:00
}
}