implement bane cap sizes based on trees in nation
This commit is contained in:
@@ -106,12 +106,7 @@ public final class Bane {
|
||||
if (this.liveDate == null)
|
||||
setDefaultTime();
|
||||
|
||||
if(this.getCity().getTOL().getRank() == 8)
|
||||
this.capSize = 40;
|
||||
else
|
||||
this.capSize = 20;
|
||||
|
||||
this.getCity().setSiegesWithstood(this.capSize);
|
||||
this.capSize = ZergManager.getBaneCap(this.getCity().getGuild());
|
||||
}
|
||||
|
||||
public static boolean summonBanestone(PlayerCharacter player, ClientConnection origin, int rank) {
|
||||
|
||||
@@ -321,16 +321,7 @@ public class City extends AbstractWorldObject {
|
||||
writer.putFloat(city.location.x);
|
||||
writer.putFloat(city.location.y);
|
||||
writer.putFloat(city.location.z);
|
||||
|
||||
//writer.putInt(city.siegesWithstood);
|
||||
if(city.getBane() != null) {
|
||||
writer.putInt(city.siegesWithstood);
|
||||
} else{
|
||||
if(city.getTOL().getRank() == 8)
|
||||
writer.putInt(40);
|
||||
else
|
||||
writer.putInt(20);
|
||||
}
|
||||
writer.putInt(ZergManager.getBaneCap(city.getGuild()));
|
||||
writer.put((byte) 1);
|
||||
writer.put((byte) 0);
|
||||
writer.putInt(0x64);
|
||||
|
||||
Reference in New Issue
Block a user