2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-07-12 12:28:13 -04:00

Suppress body ordinal in results for system-wide checks

This commit is contained in:
Xjph
2021-11-22 11:18:33 -03:30
parent 27a6b8c39d
commit 45b3dbf115
3 changed files with 14 additions and 13 deletions

View File

@ -160,9 +160,9 @@ namespace Observatory.Explorer
}
}
public List<(string, string)> CheckInterest(Scan scan, Dictionary<ulong, Dictionary<int, Scan>> scanHistory, Dictionary<ulong, Dictionary<int, FSSBodySignals>> signalHistory, ExplorerSettings settings)
public List<(string, string, bool)> CheckInterest(Scan scan, Dictionary<ulong, Dictionary<int, Scan>> scanHistory, Dictionary<ulong, Dictionary<int, FSSBodySignals>> signalHistory, ExplorerSettings settings)
{
List<(string, string)> results = new();
List<(string, string, bool)> results = new();
foreach (var criteriaFunction in CriteriaFunctions)
{
@ -210,13 +210,13 @@ namespace Observatory.Explorer
var result = criteriaFunction.Call(scan, parents, scanList, bioSignals, geoSignals);
if (result.Length > 0 && ((bool?)result[0]).GetValueOrDefault(false))
{
results.Add((result[1].ToString(), result[2].ToString()));
results.Add((result[1].ToString(), result[2].ToString(), false));
}
}
catch (NLua.Exceptions.LuaScriptException e)
{
settings.EnableCustomCriteria = false;
results.Add((e.Message, scan.Json));
results.Add((e.Message, scan.Json, false));
break;
}
}