|
|
@ -41,7 +41,6 @@ public class ZergManager { |
|
|
|
else |
|
|
|
else |
|
|
|
return multiplier; |
|
|
|
return multiplier; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static float getMultiplier10Man(int count, PlayerCharacter pc){ |
|
|
|
public static float getMultiplier10Man(int count, PlayerCharacter pc){ |
|
|
|
float multiplier = 1.0f; |
|
|
|
float multiplier = 1.0f; |
|
|
|
if(count <=4) |
|
|
|
if(count <=4) |
|
|
@ -99,7 +98,6 @@ public class ZergManager { |
|
|
|
else |
|
|
|
else |
|
|
|
return multiplier; |
|
|
|
return multiplier; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static float getMultiplier20Man(int count, PlayerCharacter pc){ |
|
|
|
public static float getMultiplier20Man(int count, PlayerCharacter pc){ |
|
|
|
float multiplier = 1.0f; |
|
|
|
float multiplier = 1.0f; |
|
|
|
if(count < 10){ |
|
|
|
if(count < 10){ |
|
|
@ -177,7 +175,6 @@ public class ZergManager { |
|
|
|
else |
|
|
|
else |
|
|
|
return multiplier; |
|
|
|
return multiplier; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static int getBaneCapSize(Guild defender){ |
|
|
|
public static int getBaneCapSize(Guild defender){ |
|
|
|
int treesInNation = defender.getNation().getSubGuildList().size() + 1; |
|
|
|
int treesInNation = defender.getNation().getSubGuildList().size() + 1; |
|
|
|
int capSize; |
|
|
|
int capSize; |
|
|
@ -233,4 +230,25 @@ public class ZergManager { |
|
|
|
else |
|
|
|
else |
|
|
|
return multiplier; |
|
|
|
return multiplier; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static float getReducedZergMultiplier(PlayerCharacter source, PlayerCharacter target){ |
|
|
|
|
|
|
|
if(source.ZergMultiplier == 0.0f) |
|
|
|
|
|
|
|
source.ZergMultiplier = 1.0f; |
|
|
|
|
|
|
|
if(target.ZergMultiplier == 0.0f) |
|
|
|
|
|
|
|
target.ZergMultiplier = 1.0f; |
|
|
|
|
|
|
|
if(source.ZergMultiplier > 0 && target.ZergMultiplier > 0){ |
|
|
|
|
|
|
|
if(source.ZergMultiplier > target.ZergMultiplier) { |
|
|
|
|
|
|
|
return 1 + (target.ZergMultiplier - source.ZergMultiplier); |
|
|
|
|
|
|
|
} else{ |
|
|
|
|
|
|
|
return 1.0f; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}else if(source.ZergMultiplier < 0 && target.ZergMultiplier > 0){ |
|
|
|
|
|
|
|
return source.ZergMultiplier; |
|
|
|
|
|
|
|
} else if(source.ZergMultiplier < 0 && target.ZergMultiplier < 0){ |
|
|
|
|
|
|
|
return source.ZergMultiplier; |
|
|
|
|
|
|
|
} else if(source.ZergMultiplier > 0 && target.ZergMultiplier < 0){ |
|
|
|
|
|
|
|
return source.ZergMultiplier; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return 1.0f; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|