We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 758fd19 commit fbdf0e1Copy full SHA for fbdf0e1
internal/action/waypoint.go
@@ -66,15 +66,19 @@ func (b *Builder) useWP(a area.Area) *Chain {
66
currentWP := area.WPAddresses[a]
67
if !slices.Contains(d.PlayerUnit.AvailableWaypoints, a) {
68
for {
69
+ traverseAreas = append(currentWP.LinkedFrom, traverseAreas...)
70
+
71
if slices.Contains(d.PlayerUnit.AvailableWaypoints, a) {
72
break
73
}
- traverseAreas = append(traverseAreas, currentWP.LinkedFrom...)
74
75
currentWP = area.WPAddresses[currentWP.LinkedFrom[0]]
76
a = currentWP.LinkedFrom[0]
77
78
79
80
+ currentWP = area.WPAddresses[a]
81
82
// First use the previous available waypoint that we have discovered
83
actions = append(actions, NewStepChain(func(d data.Data) []step.Step {
84
return []step.Step{
0 commit comments