|
|
@ -2,9 +2,10 @@ package engine.gameManager; |
|
|
|
|
|
|
|
|
|
|
|
import engine.objects.Bane; |
|
|
|
import engine.objects.Bane; |
|
|
|
import engine.objects.Guild; |
|
|
|
import engine.objects.Guild; |
|
|
|
|
|
|
|
import engine.objects.PlayerCharacter; |
|
|
|
|
|
|
|
|
|
|
|
public class ZergManager { |
|
|
|
public class ZergManager { |
|
|
|
public static float getMultiplier5Man(int count){ |
|
|
|
public static float getMultiplier5Man(int count, PlayerCharacter pc){ |
|
|
|
float multiplier = 1.0f; |
|
|
|
float multiplier = 1.0f; |
|
|
|
switch(count){ |
|
|
|
switch(count){ |
|
|
|
case 1: |
|
|
|
case 1: |
|
|
@ -34,10 +35,14 @@ public class ZergManager { |
|
|
|
multiplier -= 1.0f; |
|
|
|
multiplier -= 1.0f; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
ChatManager.chatSystemInfo(pc,"Zerg Multiplier Set: " + multiplier); |
|
|
|
|
|
|
|
if(multiplier == 0.0f) |
|
|
|
|
|
|
|
return 1.0f; |
|
|
|
|
|
|
|
else |
|
|
|
return multiplier; |
|
|
|
return multiplier; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static float getMultiplier10Man(int count){ |
|
|
|
public static float getMultiplier10Man(int count, PlayerCharacter pc){ |
|
|
|
float multiplier = 1.0f; |
|
|
|
float multiplier = 1.0f; |
|
|
|
if(count <=4) |
|
|
|
if(count <=4) |
|
|
|
return 0.0f; |
|
|
|
return 0.0f; |
|
|
@ -88,10 +93,14 @@ public class ZergManager { |
|
|
|
multiplier -= 1.0f; |
|
|
|
multiplier -= 1.0f; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
ChatManager.chatSystemInfo(pc,"Zerg Multiplier Set: " + multiplier); |
|
|
|
|
|
|
|
if(multiplier == 0.0f) |
|
|
|
|
|
|
|
return 1.0f; |
|
|
|
|
|
|
|
else |
|
|
|
return multiplier; |
|
|
|
return multiplier; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static float getMultiplier20Man(int count){ |
|
|
|
public static float getMultiplier20Man(int count, PlayerCharacter pc){ |
|
|
|
float multiplier = 1.0f; |
|
|
|
float multiplier = 1.0f; |
|
|
|
if(count < 10){ |
|
|
|
if(count < 10){ |
|
|
|
multiplier += 1.25f; |
|
|
|
multiplier += 1.25f; |
|
|
@ -162,6 +171,10 @@ public class ZergManager { |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
ChatManager.chatSystemInfo(pc,"Zerg Multiplier Set: " + multiplier); |
|
|
|
|
|
|
|
if(multiplier == 0.0f) |
|
|
|
|
|
|
|
return 1.0f; |
|
|
|
|
|
|
|
else |
|
|
|
return multiplier; |
|
|
|
return multiplier; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -193,18 +206,31 @@ public class ZergManager { |
|
|
|
} |
|
|
|
} |
|
|
|
return capSize; |
|
|
|
return capSize; |
|
|
|
} |
|
|
|
} |
|
|
|
public static float getMultiplier30Man(int count){ |
|
|
|
public static float getMultiplier30Man(int count, PlayerCharacter pc){ |
|
|
|
float multiplier = 1.0f; |
|
|
|
float multiplier = 1.0f; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ChatManager.chatSystemInfo(pc,"Zerg Multiplier Set: " + multiplier); |
|
|
|
|
|
|
|
if(multiplier == 0.0f) |
|
|
|
|
|
|
|
return 1.0f; |
|
|
|
|
|
|
|
else |
|
|
|
return multiplier; |
|
|
|
return multiplier; |
|
|
|
} |
|
|
|
} |
|
|
|
public static float getMultiplier40Man(int count){ |
|
|
|
public static float getMultiplier40Man(int count, PlayerCharacter pc){ |
|
|
|
float multiplier = 1.0f; |
|
|
|
float multiplier = 1.0f; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ChatManager.chatSystemInfo(pc,"Zerg Multiplier Set: " + multiplier); |
|
|
|
|
|
|
|
if(multiplier == 0.0f) |
|
|
|
|
|
|
|
return 1.0f; |
|
|
|
|
|
|
|
else |
|
|
|
return multiplier; |
|
|
|
return multiplier; |
|
|
|
} |
|
|
|
} |
|
|
|
public static float getMultiplierUnlimited(int count){ |
|
|
|
public static float getMultiplierUnlimited(int count, PlayerCharacter pc){ |
|
|
|
float multiplier = 1.0f; |
|
|
|
float multiplier = 1.0f; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ChatManager.chatSystemInfo(pc,"Zerg Multiplier Set: " + multiplier); |
|
|
|
|
|
|
|
if(multiplier == 0.0f) |
|
|
|
|
|
|
|
return 1.0f; |
|
|
|
|
|
|
|
else |
|
|
|
return multiplier; |
|
|
|
return multiplier; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|