From e3fc896f4b7d726ec0d41f469e300bbae368e5d7 Mon Sep 17 00:00:00 2001 From: "s3607057 (Angus Niven)" Date: Wed, 18 Sep 2019 22:16:02 +1000 Subject: [PATCH] Cleaning up MapManager slightly. --- Assets/Scripts/Map Generation/MapManager.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Assets/Scripts/Map Generation/MapManager.cs b/Assets/Scripts/Map Generation/MapManager.cs index 7fb63a3..698b78f 100644 --- a/Assets/Scripts/Map Generation/MapManager.cs +++ b/Assets/Scripts/Map Generation/MapManager.cs @@ -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; }