EDBGS/EliteBGS/LogGenerator/SearchAndRescueFormat.cs

19 lines
485 B
C#
Raw Normal View History

using EDPlayerJournal;
using EDPlayerJournal.BGS;
using System.Linq;
2022-11-24 19:38:19 +01:00
namespace EliteBGS.LogGenerator;
public class SearchAndRescueFormat : GenericFormat<SearchAndRescue> {
public override string GenerateSummary(Objective objective) {
long profit = objective
.EnabledOfType<SearchAndRescue>()
.Sum(x => x.Count)
;
if (profit <= 0) {
return "";
}
return string.Format("S&R: {0}t", profit);
}
2022-11-24 19:38:19 +01:00
}