From b03d851f779634038e084b2fc964b29655677e8a Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Sat, 29 Jan 2022 16:18:28 +0100 Subject: [PATCH] fix matching. station is not important --- BGS/Objective.cs | 1 + BGS/Report.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/BGS/Objective.cs b/BGS/Objective.cs index 9217ad4..d60cc7e 100644 --- a/BGS/Objective.cs +++ b/BGS/Objective.cs @@ -68,6 +68,7 @@ namespace EliteBGS.BGS { } } + /* if system and faction already match, station is not so important */ if (e.Station != null && station != null) { if (string.Compare(e.Station, station, true) == 0) { ++match_count; diff --git a/BGS/Report.cs b/BGS/Report.cs index 2dad427..efad997 100644 --- a/BGS/Report.cs +++ b/BGS/Report.cs @@ -264,7 +264,7 @@ namespace EliteBGS.BGS { /* Find all objectives that generally match. */ var matches = objectives - .Where(x => x.Matches(entry) >= 3) + .Where(x => x.Matches(entry) >= 2) .OrderBy(x => x.Matches(entry)) ;