mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-11 06:24:38 +00:00
checking for contribution during a base capture does not result in the generation of heat (#1070)
This commit is contained in:
parent
a1cf6c2701
commit
90b7d2591d
1 changed files with 4 additions and 1 deletions
|
|
@ -349,8 +349,11 @@ class ZoneHotSpotHistory(zone: Zone, hotspots: ListBuffer[HotSpotInfo], blanking
|
||||||
val out = progressionOfIntervals
|
val out = progressionOfIntervals
|
||||||
.flatMap { y =>
|
.flatMap { y =>
|
||||||
val yFloat = span * y.toFloat
|
val yFloat = span * y.toFloat
|
||||||
progressionOfIntervals.map { x => TryHotSpot(lowerLeftCorner + Vector3(span * x.toFloat, yFloat, 0f)) }
|
progressionOfIntervals.map { x =>
|
||||||
|
hotspots.find { _.DisplayLocation == lowerLeftCorner + Vector3(span * x.toFloat, yFloat, 0f) }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
.flatten
|
||||||
.filter { info => Vector3.DistanceSquared(center, info.DisplayLocation) < squareRadius }
|
.filter { info => Vector3.DistanceSquared(center, info.DisplayLocation) < squareRadius }
|
||||||
.distinctBy { _.DisplayLocation }
|
.distinctBy { _.DisplayLocation }
|
||||||
.toList
|
.toList
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue