This commit is contained in:
ScrawnyRonnie 2025-06-09 20:37:38 -04:00
parent acb9cae3fc
commit e32e67a00d

View file

@ -276,7 +276,7 @@ class HackCaptureActor extends Actor {
&& base._2.GUID != building.GUID) && base._2.GUID != building.GUID)
val zoneTowers = building.Zone.Buildings.filter(tower => val zoneTowers = building.Zone.Buildings.filter(tower =>
tower._2.BuildingType == StructureType.Tower && tower._2.Faction != hackedByFaction) tower._2.BuildingType == StructureType.Tower && tower._2.Faction != hackedByFaction)
// All major facilities in zone are now owned by the hacking faction. Capture all towers in the zone // All major facilities in zone are now owned by the hacking faction. Capture all remaining towers in the zone
// Base that was just hacked is not counted (hence the size - 1) because it wasn't always in ownedBases (async?) // Base that was just hacked is not counted (hence the size - 1) because it wasn't always in ownedBases (async?)
if (zoneBases.size - 1 == ownedBases.size && zoneTowers.nonEmpty) if (zoneBases.size - 1 == ownedBases.size && zoneTowers.nonEmpty)
{ {