implement bane cap sizes based on trees in nation

This commit is contained in:
FatBoy committed 2024-04-28 18:59:43 -05:00
1 parent 48e126823f
commit fb6a3706cd
4 files changed
+29 -25

No files matched your search

+1 -10
View File
@@ -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);