Fed start riffle fix

- Hold a fed feeder's start only when it stands more than 1 block above its junction, so 1-block riffle starts join the receiving water
- Keep a fed start in the tongue invariant's pool zone as a held point that must cascade into its junction
- Drop the held-lip riffle tolerance and assert no tongues on the seeds again
- Stop the junction-level and led-in pool walks only at a styled fall from a held start or from more than 5 blocks beside the bank
- Cover 1-block fed starts in grader unit tests and riffling held starts in the scene invariant tests
This commit is contained in:
Brian Neumann-Fopiano committed 2026-11-02 05:00:56 -05:00
1 parent 06b7001132
commit 2edf610e8b
6 files changed
+83 -65

No files matched your search

@@ -10,6 +10,7 @@ public final class ConfluenceGrader {
public static final float POOL_CAP = 64f;
public static final float APPROACH_SLOPE = 0.25f;
public static final int MARGIN_LOWERING = 5;
public static final int MAX_START_LOWERING = 1;
private ConfluenceGrader() {
}
@@ -53,7 +54,7 @@ public final class ConfluenceGrader {
ReachDraft draft = drafts.get(feeder);
requireJunction(window, draft, downstream);
boolean[] fixed = draft.fixed();
fixed[0] |= draft.incoming.length > 0;
fixed[0] |= draft.incoming.length > 0 && draft.grade[0] - downstream.grade[0] > MAX_START_LOWERING;
int waterfallMinimumDrop = draft.tier.waterfallMinimumDrop();
int[] settled = settle(footprint(draft), draft.grade, fixed, receiving(drafts, downstream, feeder), downstream.grade[0],
waterfallMinimumDrop);