add a influence total for soft caps
This commit is contained in:
		
							parent
							
								
									7351401b95
								
							
						
					
					
						commit
						9d4342a6f8
					
				| @ -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(); | ||||
|         } | ||||
| 
 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user