Object scatter test follows the channel-or-shore veto

This commit is contained in:
Brian Neumann-Fopiano
2026-09-01 21:57:51 -04:00
parent 507e241b2c
commit 1ad3a25cb6
@@ -106,7 +106,7 @@ public class IrisObjectSurfaceSupportPlacementTest {
@Test
public void automaticSurfaceObjectCannotOverlapRiverWater() {
when(complex.hasHydrologySurfaceFluid(0, 0)).thenReturn(true);
when(complex.hasHydrologyChannelOrShore(0, 0)).thenReturn(true);
SurfacePlacer placer = new SurfacePlacer(engine);
assertEquals(-1, place(placer, placement(ObjectPlaceMode.CENTER_HEIGHT), -1));
@@ -115,7 +115,7 @@ public class IrisObjectSurfaceSupportPlacementTest {
@Test
public void automaticForcePlacementCannotOverlapRiverWater() {
when(complex.hasHydrologySurfaceFluid(0, 0)).thenReturn(true);
when(complex.hasHydrologyChannelOrShore(0, 0)).thenReturn(true);
SurfacePlacer placer = new SurfacePlacer(engine);
IrisObjectPlacement placement = placement(ObjectPlaceMode.CENTER_HEIGHT);
placement.setForcePlace(true);
@@ -126,7 +126,7 @@ public class IrisObjectSurfaceSupportPlacementTest {
@Test
public void explicitObjectPlacementRemainsAllowedInsideRiverWater() {
when(complex.hasHydrologySurfaceFluid(0, 0)).thenReturn(true);
when(complex.hasHydrologyChannelOrShore(0, 0)).thenReturn(true);
SurfacePlacer placer = new SurfacePlacer(engine);
assertTrue(place(placer, placement(ObjectPlaceMode.CENTER_HEIGHT), SURFACE_Y) >= 0);