Use circles instead of points for zome wall zones

This commit is contained in:
2026-02-03 13:48:15 +00:00
parent be6acfa58b
commit db24b0ffa6
8 changed files with 11 additions and 7 deletions
+2 -1
View File
@@ -218,9 +218,10 @@ rotateToOverlappingWall w =
maybe
id
(doWallRotate . snd)
(overlapCircWallsClosest p (crRad (cr ^. crType) + 10) (filter _wlRotateTo $ wlsNearPoint p w))
(overlapCircWallsClosest p r (filter _wlRotateTo $ wlsNearCirc p r w))
w
where
r = (crRad (cr ^. crType) + 10)
cr = you w
p = you w ^. crPos . _xy
+1
View File
@@ -9,6 +9,7 @@ import LensHelp
import Linear
cloudPoisonDamage :: Gas -> World -> World
-- should probably use crsNearCirc
cloudPoisonDamage c w = foldl' (flip doDam) w (filter f $ crsNearPoint clpos w)
where
doDam cr =