Archived
1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
9d4342a6f8 add a influence total for soft caps 2021-08-22 11:50:43 +02:00
7351401b95 add another mission name 2021-08-22 11:50:33 +02:00
2 changed files with 6 additions and 0 deletions

View File

@ -83,6 +83,7 @@ namespace NonaBGS.BGS {
private string BuildMissionList(Objective objective) {
Dictionary<string, Dictionary<string, int>> collated = new Dictionary<string, Dictionary<string, int>>();
StringBuilder output = new StringBuilder();
int total_influence = 0;
var missions = from entries in objective.LogEntries
where entries.GetType() == typeof(MissionCompleted)
@ -102,6 +103,8 @@ namespace NonaBGS.BGS {
}
++collated[m.MissionName][m.Influence];
total_influence += m.Influence.Length;
}
foreach (var mission in collated) {
@ -118,6 +121,8 @@ namespace NonaBGS.BGS {
output.Append(")\n\n");
}
output.AppendFormat("Total Influence: {0}\n", total_influence);
return output.ToString();
}

View File

@ -24,6 +24,7 @@ namespace NonaBGS.Journal {
{ "Mission_Collect_name", "Provide" },
{ "Mission_Collect_Bust_name", "Provide (Bust)" },
{ "Mission_Collect_CivilLiberty_name", "Provide (Civil Liberty)" },
{ "Mission_Collect_Famine_name", "Provide (Famine)" },
{ "Mission_Courier_Democracy_name", "Courier (Democracy)" },
{ "Mission_Courier_Elections_name", "Courier (Elections)" },
{ "Mission_Courier_Famine_name", "Courier (Famine)" },