diff options
| author | Vaino Kauppila <vaino@vke.fi> | 2026-07-30 13:00:27 +0300 |
|---|---|---|
| committer | Vaino Kauppila <vaino@vke.fi> | 2026-07-30 13:00:27 +0300 |
| commit | 1409c832a6d69ffa8abdb33cd6352217e15fec21 (patch) | |
| tree | fe9092e3c96e825721e7e2331026d4ce5e17a1c4 /src | |
| parent | 6cdd436caf9e2103f516442ab6e70a870d4cba04 (diff) | |
| download | forts_clone-1409c832a6d69ffa8abdb33cd6352217e15fec21.tar.gz forts_clone-1409c832a6d69ffa8abdb33cd6352217e15fec21.zip | |
Add Cut Test map; document ClaimsStructures is not a placement gateHEADswarm/devices-on-strut-graph
- New map entry in data/maps.lua: "Cut Test" — a narrow 2-wide X-braced
tower with a reactor on top, for testing the mount-radius / collapse
victory mechanic.
- Comment in build_graph.cpp documenting that ClaimsStructures in Forts
game data is a territory-claiming flag, not a placement-legality rule.
- Update CLAUDE.md M5 status to done: devices on strut graph, fire
damages devices.
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/build_graph.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/build_graph.cpp b/src/game/build_graph.cpp index 2398b9c..b4c75d7 100644 --- a/src/game/build_graph.cpp +++ b/src/game/build_graph.cpp @@ -540,6 +540,11 @@ void BuildGraph::break_node(int node_id) { // Devices mounted on the strut graph // ============================================================================= + +// NOTE: ClaimsStructures in Forts game data is a territory/team-claiming flag, +// not a placement-legality rule. Do NOT add a strut-proximity placement gate +// without new evidence. Every device snaps onto the nearest strut; unmounted +// devices die only from weapon damage, which is acceptable. int BuildGraph::mount_device(int na, int nb, int device_type, int team, float hp) { if (na < 0 || na >= (int)nodes.size()) return -1; if (nb < 0 || nb >= (int)nodes.size()) return -1; |
