Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
Only include transitions and waypoints. Woops
Browse files Browse the repository at this point in the history
  • Loading branch information
syyePhenomenol committed Jul 5, 2022
1 parent 2bca0fc commit 3973075
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions MapModS/Data/PathfinderData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public static void Load()
}
}

// Set Start Warp
string[] startTerms = GetStartTerms();
if (startTerms.Length > 0)
{
Expand All @@ -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();
}
Expand Down

0 comments on commit 3973075

Please sign in to comment.