only thargoid war missions are system contributions

This commit is contained in:
Florian Stinglmayr 2022-12-03 16:34:54 +01:00
parent 72cb379c95
commit 0e92ee8ab4

View File

@ -45,11 +45,14 @@ public class MissionCompleted : Transaction {
/// </summary> /// </summary>
public override bool SystemContribution { public override bool SystemContribution {
get { get {
if (AcceptedEntry == null || AcceptedEntry.Mission == null) { if (AcceptedEntry == null ||
AcceptedEntry.Mission == null ||
AcceptedEntry.Mission.Name == null) {
return false; return false;
} }
if (AcceptedEntry.Mission.IsRescueMission) { if (AcceptedEntry.Mission.IsRescueMission &&
AcceptedEntry.Mission.Name.Contains("Mission_TW_")) {
return true; return true;
} }