collection of players for cities and mines

This commit is contained in:
2024-02-05 20:08:39 -06:00
parent 33bd1a0906
commit 5287b993fa
4 changed files with 111 additions and 10 deletions
+3 -2
View File
@@ -986,7 +986,7 @@ public class City extends AbstractWorldObject {
// Gather current list of players within the zone bounds
currentPlayers = WorldGrid.getObjectsInRangePartial(this.location, CityBoundsType.ZONE.extents, MBServerStatics.MASK_PLAYER);
currentPlayers = WorldGrid.getObjectsInRangePartial(this.location, CityBoundsType.ZONE.extents * 2, MBServerStatics.MASK_PLAYER);
currentMemory = new HashSet<>();
for (AbstractWorldObject playerObject : currentPlayers) {
@@ -1025,7 +1025,7 @@ public class City extends AbstractWorldObject {
} catch (Exception e) {
Logger.error(e.getMessage());
}
PowersManager.applyZergBuff(this);
}
private void onExit(HashSet<Integer> currentMemory) {
@@ -1069,6 +1069,7 @@ public class City extends AbstractWorldObject {
if (this.cityOutlaws.contains(removalUUID))
this.cityOutlaws.remove(removalUUID);
}
PowersManager.removeZergBuff(toRemove);
}
public int getWarehouseBuildingID() {