38d8962f84184b47e697a34ca189751f69ad5c2f
moverules.nim replaces the M2 `blocked` bool with the 5.5 status model: the rules own the `walls` source (`stuckWalls`, `squeezedWalls`) and take `locked` (any entry, any source) as input, so a GM-sourced lock refuses a player move without the rules ever knowing what caused it. Identity is kept on KEEP, cleared on CLEAR, and only tokens the event touches change. Every geometry path now uses the token's own radius (5.6): the overlap test, the escape check, the capsule, the door push and the step cap's neighbour rules. `resizeToken` implements 5.6: a shrink never pushes and clears the walls entries only when the overlap ends, a grow that overlaps is displaced by a deterministic greedy relaxation (radial off the first overlapped wall, scene order, at most 16 rounds, one flipped-side pass) and a grow that cannot be placed stays put and becomes squeezed(walls). A step whose centre path would cross a wall ends the pass, so the relaxation never carries a token through a wall. worldmap.nim is the bridge: `ruleToken`/`ruleWall`/`moveScene` build the rules' input from the records, `applyOutcome` copies the position, the door-push history and the walls-sourced entries back, and `wallsStatuses` does the same for a caller that writes its own row. All of them return fresh sequences instead of mutating a shared one.
Description
No description provided
9.2 MiB
Languages
JavaScript
38.4%
Nim
38.3%
TypeScript
20.9%
Shell
1.9%
CSS
0.5%