|
@ -380,9 +380,6 @@ public class MapManager : ScriptableObject |
|
|
* to track which one-off increase has been applied |
|
|
* to track which one-off increase has been applied |
|
|
* and which hasn't |
|
|
* and which hasn't |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
/*diffMin = diffMinStart; |
|
|
|
|
|
diffMax = diffMaxStart;*/ |
|
|
|
|
|
|
|
|
|
|
|
//As the number of players shrinks, we ramp up the difficulty and contract the track
|
|
|
//As the number of players shrinks, we ramp up the difficulty and contract the track
|
|
|
if (initialPlayerCount > 0) |
|
|
if (initialPlayerCount > 0) |
|
@ -390,8 +387,6 @@ public class MapManager : ScriptableObject |
|
|
if (clients.ConnectedClients.Count <= (float)(0.5f * initialPlayerCount)) |
|
|
if (clients.ConnectedClients.Count <= (float)(0.5f * initialPlayerCount)) |
|
|
{ |
|
|
{ |
|
|
//Debug.Log("Initial players = " + initialPlayerCount + ", current players = " + clients.ConnectedClients.Count + ", player count at half or below");
|
|
|
//Debug.Log("Initial players = " + initialPlayerCount + ", current players = " + clients.ConnectedClients.Count + ", player count at half or below");
|
|
|
/*diffMin++; |
|
|
|
|
|
diffMax++;*/ |
|
|
|
|
|
difficulty++; |
|
|
difficulty++; |
|
|
|
|
|
|
|
|
widthMin -= 2; |
|
|
widthMin -= 2; |
|
@ -401,8 +396,6 @@ public class MapManager : ScriptableObject |
|
|
if (clients.ConnectedClients.Count <= (float)(0.33f * initialPlayerCount)) |
|
|
if (clients.ConnectedClients.Count <= (float)(0.33f * initialPlayerCount)) |
|
|
{ |
|
|
{ |
|
|
//Debug.Log("Initial players = " + initialPlayerCount + ", current players = " + clients.ConnectedClients.Count + ", player count below 33%");
|
|
|
//Debug.Log("Initial players = " + initialPlayerCount + ", current players = " + clients.ConnectedClients.Count + ", player count below 33%");
|
|
|
/*diffMin++; |
|
|
|
|
|
diffMax += 2;*/ |
|
|
|
|
|
difficulty += 2; |
|
|
difficulty += 2; |
|
|
|
|
|
|
|
|
widthMin -= 2; |
|
|
widthMin -= 2; |
|
@ -427,10 +420,8 @@ public class MapManager : ScriptableObject |
|
|
}*/ |
|
|
}*/ |
|
|
|
|
|
|
|
|
//Apply caps
|
|
|
//Apply caps
|
|
|
//if (diffMin > diffMinMax)
|
|
|
|
|
|
if (difficulty > diffCap) |
|
|
if (difficulty > diffCap) |
|
|
{ |
|
|
{ |
|
|
//diffMin = diffMinMax;
|
|
|
|
|
|
difficulty = diffCap; |
|
|
difficulty = diffCap; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|