diff --git a/MapModS/Data/Pathfinder.cs b/MapModS/Data/Pathfinder.cs index b78999f..fa5b499 100644 --- a/MapModS/Data/Pathfinder.cs +++ b/MapModS/Data/Pathfinder.cs @@ -16,10 +16,10 @@ public static void Initialize() { localPm = new(PD.lm, RM.RS.Context); - // Remove start transitions - foreach (string transition in PD.GetStartTransitions()) + // Remove start terms + foreach (string term in PD.GetStartTerms()) { - localPm.Set(transition, 0); + localPm.Set(term, 0); } } diff --git a/MapModS/Data/PathfinderData.cs b/MapModS/Data/PathfinderData.cs index 25a6e87..43548d1 100644 --- a/MapModS/Data/PathfinderData.cs +++ b/MapModS/Data/PathfinderData.cs @@ -107,16 +107,15 @@ public static void Load() } } - // Set Start Warp - string[] startTransitions = GetStartTransitions(); - if (startTransitions.Length > 0) + string[] startTerms = GetStartTerms(); + if (startTerms.Length > 0) { adjacentScenes["Warp-Start"] = ItemChanger.Internal.Ref.Settings.Start.SceneName; adjacentTerms["Warp-Start"] = "Warp-Start"; lmb.AddWaypoint(new("Warp-Start", "FALSE")); - foreach (string transition in startTransitions) + foreach (string term in startTerms) { - lmb.DoLogicEdit(new(transition, "ORIG | Warp-Start")); + lmb.DoLogicEdit(new(term, "ORIG | Warp-Start")); } } @@ -125,12 +124,12 @@ public static void Load() waypointScenes = lm.Waypoints.Where(w => RD.IsRoom(w.Name) || w.Name.IsSpecialRoom()).ToDictionary(w => w.Name, w => w); } - public static string[] GetStartTransitions() + public static string[] GetStartTerms() { if (RM.RS.Context.InitialProgression is ProgressionInitializer pi) { return pi.Setters.Concat(pi.Increments) - .Where(tv => RM.RS.Context.LM.TransitionLookup.ContainsKey(tv.Term.Name) && tv.Value > 0) + .Where(tv => tv.Value > 0) .Select(tv => tv.Term.Name) .ToArray(); }