From 3973075de96050f494c94631a801f9510fe16ad3 Mon Sep 17 00:00:00 2001 From: syyePhenomenol Date: Tue, 5 Jul 2022 21:07:26 +1000 Subject: [PATCH] Only include transitions and waypoints. Woops --- MapModS/Data/PathfinderData.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MapModS/Data/PathfinderData.cs b/MapModS/Data/PathfinderData.cs index 43548d1..912440f 100644 --- a/MapModS/Data/PathfinderData.cs +++ b/MapModS/Data/PathfinderData.cs @@ -107,6 +107,7 @@ public static void Load() } } + // Set Start Warp string[] startTerms = GetStartTerms(); if (startTerms.Length > 0) { @@ -126,10 +127,10 @@ public static void Load() public static string[] GetStartTerms() { - if (RM.RS.Context.InitialProgression is ProgressionInitializer pi) + if (RM.RS.Context.InitialProgression is ProgressionInitializer pi && RM.RS.Context.LM is LogicManager lm) { return pi.Setters.Concat(pi.Increments) - .Where(tv => tv.Value > 0) + .Where(tv => (lm.TransitionLookup.ContainsKey(tv.Term.Name) || lm.Waypoints.Any(waypoint => waypoint.Name == tv.Term.Name)) && tv.Value > 0) .Select(tv => tv.Term.Name) .ToArray(); }