Add ground with height #14

Open
fputs wants to merge 10 commits from hdae/ground-with-height into master
Owner

Milestone 13, gates 97 through 103: ground with height. Each square gets a ground height in 5-foot steps, elevation becomes absolute, and lines, moves, inclines, jumps, and edges follow the ground.

Opened at gate 97 so CI runs on each gate. Each gate is reviewed by the human before its commit; gates are in hdae/gates-todo/ and hdae/gates-done/.

🤖 Generated with Claude Code

Milestone 13, gates 97 through 103: ground with height. Each square gets a ground height in 5-foot steps, elevation becomes absolute, and lines, moves, inclines, jumps, and edges follow the ground. Opened at gate 97 so CI runs on each gate. Each gate is reviewed by the human before its commit; gates are in `hdae/gates-todo/` and `hdae/gates-done/`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Milestone 13 gives each square a ground height. Elevation becomes
absolute over a heightmap with one surface per square, heights in
5-foot steps so creatures stay on the grid's lattice, and the editor
tints by height. Gates 97 through 103 cover the ground, lines, moving,
inclines, jumps, and edges; every gate stops for review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add ground height
All checks were successful
safety / safety (pull_request) Successful in 5m16s
d7f039c29a
Each map square now has a ground height in 5-foot steps, and a
creature's elevation is absolute. Every rule that read elevation 0 as
the ground reads the square's height instead: placing, moves, terrain,
falls and catches, climbing, water, hazards, footing, and tremorsense.
A large creature stands on the highest ground under it (WR-261); a
placement's elevation counts from its ground (WR-262). The editor
tints squares by height.

Lines and cover ignore the ground until gate 98; ground moves keep one
height until gate 99.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Close gate 97
All checks were successful
safety / safety (pull_request) Successful in 5m17s
fcf680f113
The human accepted gate 97 and CI passed for d7f039c. Gate 98, ground
in lines and cover, is next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Put the ground in lines and cover
Some checks failed
safety / safety (pull_request) Failing after 5m19s
2de812c6a7
Lines of effect and sight now treat the ground as solid up to each
square's height, and the center line through it gives standard cover
(WR-263). A creature leans over its own ledge, so it and a creature
below see each other; a burrowed creature stays sealed in. Under water
the solid ground starts at the bottom (WR-264), and a low wall stands
on its square's ground (WR-241).

Strikes, senses, and flanking read this through the grid, which gains
a solid plane the encounter rebuilds from relief and footing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Skip an empty dice copy in test_ledge
All checks were successful
safety / safety (pull_request) Successful in 5m18s
6571e7d53a
memcpy with a NULL source is undefined even for 0 bytes, and Linux
UBSan failed CI on it. Copy the extra dice only when there are some.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Close gate 98
All checks were successful
safety / safety (pull_request) Successful in 5m18s
83de86f1e6
The human accepted gate 98, and CI passed for 6571e7d once a test's
empty memcpy from NULL stopped tripping Linux UBSan. Gate 98.5, seams,
is next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Block lines along seams
All checks were successful
safety / safety (pull_request) Successful in 5m19s
9a8744dbe6
Squares that block a line are now one solid, so a line along the edge
two walls, barriers, raised squares, or low walls share is blocked
(WR-265). Large and Gargantuan centers lie on grid lines, so their
lines ran between such squares unblocked. A lone edge or a diagonal
corner still passes; fog along an edge counts the thinner square.

The attacker's own ground now counts under the target, so a creature
above a burrowed one no longer has a line to it (WR-263).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Close gate 98.5
All checks were successful
safety / safety (pull_request) Successful in 5m19s
97f29a8cfc
The human accepted gate 98.5 and CI passed for 9a8744d. Gate 99,
moving over height, is next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move over raised ground
All checks were successful
safety / safety (pull_request) Successful in 5m21s
4e2d5aa60e
Ground moves now keep their height (WR-266). A ground move's last
step may leave an edge; the mover falls the full drop, while a flier
or column climber stays up until its turn ends (WR-267). A push ends
on the first square past a ledge and the target falls (WR-268). A
Climb may finish on a cliff's top in the same action (WR-269).

Commands on uneven ground now run on a copy, as on hazardous ground,
so a fall can pause for a catch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Close gate 99
All checks were successful
safety / safety (pull_request) Successful in 5m21s
b6768416ef
The human accepted gate 99 and CI passed for 4e2d5aa. Gate 100,
inclines, is next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
All checks were successful
safety / safety (pull_request) Successful in 5m21s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'hdae/ground-with-height:hdae/ground-with-height'
git switch 'hdae/ground-with-height'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'master'
git merge --no-ff 'hdae/ground-with-height'
git switch 'hdae/ground-with-height'
git rebase 'master'
git switch 'master'
git merge --ff-only 'hdae/ground-with-height'
git switch 'hdae/ground-with-height'
git rebase 'master'
git switch 'master'
git merge --no-ff 'hdae/ground-with-height'
git switch 'master'
git merge --squash 'hdae/ground-with-height'
git switch 'master'
git merge --ff-only 'hdae/ground-with-height'
git switch 'master'
git merge 'hdae/ground-with-height'
git push origin 'master'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
fputs/wayfinder!14
No description provided.