Compare commits

...

3 Commits

Author SHA1 Message Date
365c34bdb0 update changelog 2022-12-07 23:22:38 +01:00
7fa19c0733 add comment about old Orthrus value 2022-12-07 23:22:28 +01:00
ea07c4dbcb add number of passengers 2022-12-07 23:21:36 +01:00
3 changed files with 27 additions and 2 deletions

View File

@ -20,6 +20,7 @@ public class Thargoid {
// In Update 14.1 the payout for Orthrus has been rebalanced.
{ 30000000, ThargoidVessel.Orthrus },
{ 40000000, ThargoidVessel.Medusa },
// This used to be the old payout value for Orthrus
{ 50000000, ThargoidVessel.Orthrus },
{ 60000000, ThargoidVessel.Hydra },
};

View File

@ -7,7 +7,8 @@ namespace EliteBGS.LogGenerator;
public class MissionFormat : LogFormatter {
public string GenerateLog(Objective objective) {
Dictionary<string, Dictionary<string, int>> collated = new Dictionary<string, Dictionary<string, int>>();
Dictionary<string, Dictionary<string, int>> collated = new();
Dictionary<string, ulong> passengers = new();
StringBuilder output = new StringBuilder();
int total_influence = 0;
@ -28,6 +29,15 @@ public class MissionFormat : LogFormatter {
++collated[m.MissionName][m.Influence];
total_influence += m.Influence.Length;
if (m.AcceptedEntry != null &&
m.AcceptedEntry.Mission != null &&
m.AcceptedEntry.Mission.IsPassengerMission) {
if (!passengers.ContainsKey(m.MissionName)) {
passengers[m.MissionName] = 0;
}
passengers[m.MissionName] += (m.AcceptedEntry.Mission.PassengerCount ?? 0);
}
}
foreach (var mission in collated) {
@ -37,9 +47,15 @@ public class MissionFormat : LogFormatter {
output.AppendFormat("Inf{0} x{1}, ", influence.Key, influence.Value);
}
output.Remove(output.Length - 2, 2); // remove last ", "
output.Append(")\n\n");
output.Append(")");
if (passengers.ContainsKey(mission.Key)) {
output.AppendFormat(" ({0} Passengers)", passengers[mission.Key]);
}
}
output.Append("\n\n");
var support = objective.EnabledOfType<InfluenceSupport>();
foreach (InfluenceSupport inf in support) {
output.Append(inf.ToString());

View File

@ -1,5 +1,13 @@
# EliteBGS changelog
## 0.2.2 on 07.12.2022
* Orthrus interceptor payout changed to U14.1 values.
* Detection of AX combat zones has been improved.
* All thargoid war missions now contribute to the system.
* Thargoid combat zones go to "Very High".
* Passenger missions show amount of people rescued.
## 0.2.1 on 03.12.2022
* Add support for Thargoid combat zones.