From 0e92ee8ab44e54aa41ed19874122670965cadc79 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Sat, 3 Dec 2022 16:34:54 +0100 Subject: [PATCH] only thargoid war missions are system contributions --- EDPlayerJournal/BGS/MissionCompleted.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/EDPlayerJournal/BGS/MissionCompleted.cs b/EDPlayerJournal/BGS/MissionCompleted.cs index a17f7c3..775799c 100644 --- a/EDPlayerJournal/BGS/MissionCompleted.cs +++ b/EDPlayerJournal/BGS/MissionCompleted.cs @@ -45,11 +45,14 @@ public class MissionCompleted : Transaction { /// public override bool SystemContribution { get { - if (AcceptedEntry == null || AcceptedEntry.Mission == null) { + if (AcceptedEntry == null || + AcceptedEntry.Mission == null || + AcceptedEntry.Mission.Name == null) { return false; } - if (AcceptedEntry.Mission.IsRescueMission) { + if (AcceptedEntry.Mission.IsRescueMission && + AcceptedEntry.Mission.Name.Contains("Mission_TW_")) { return true; }