|
|
@ -223,6 +223,12 @@ public class MapManager : ScriptableObject |
|
|
|
|
|
|
|
//Debug.Log("Checking " + first.name + ", " + second.name);
|
|
|
|
|
|
|
|
//No more than one link section in a row
|
|
|
|
if (first.length == 1 && second.length == 1) |
|
|
|
{ |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
//if (second.difficulty < diffMin || second.difficulty > diffMax)
|
|
|
|
if (second.difficultyMax < difficulty || second.difficultyMin > difficulty) //Check that we're in the right difficulty range for this section
|
|
|
|
{ |
|
|
|