Browse Source

Cleaning up MapManager slightly.

master
s3607057 (Angus Niven) 4 years ago
parent
commit
e3fc896f4b
1 changed files with 0 additions and 9 deletions
  1. +0
    -9
      Assets/Scripts/Map Generation/MapManager.cs

+ 0
- 9
Assets/Scripts/Map Generation/MapManager.cs View File

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

Loading…
Cancel
Save