1b674aa5
feat(crew): restrict movement to room cell slots
Add per-room cell slots and limit crew movement to unoccupied cells. - Add Cells field to Room and populate two slots per player room. - Shift enemy-ship cells by the same x-offset as rooms. - Build a cellSet lookup and gate moves on it, skipping occupied cells. - Add cellOccupied check so two crew cannot share a slot. - Render dim cell markers in render.go. - Cover cellSet and occupancy with tests; tighten hit-flash test timing.
Eugene Blikh <bigbes@gmail.com> — 2026-05-21 07:24:37 UTC
Commit 1b674aa54513febeb3d317027977e0fd80c992ff —
view raw patch
Parent(s):
a1f0ec55
| File | Status | + | − |
|---|---|---|---|
combat_test.go
|
M | +1 | -1 |
main.go
|
M | +21 | -2 |
render.go
|
M | +7 | |
ship.go
|
M | +16 | -5 |
tiles.go
|
M | +10 | |
tiles_test.go
|
M | +43 |