docs: wall.update open is not a patch field
This commit is contained in:
+12
-11
@@ -1421,15 +1421,15 @@ switches, never `thickness`, `position` or `height` (#50).
|
||||
`player_marker:true` and derives `window` (5.8).
|
||||
- `flags` is a JSON object or absent (absent = `{}`); anything else is `invalid`. It is stored
|
||||
verbatim and never interpreted — the switches are fields, not flags (5.8).
|
||||
- `wall.update` patches `a`, `b`, `thickness`, `position`, `height`, the switches (or one `preset`),
|
||||
`label` and `flags`; at least one of them is required, otherwise `invalid`. A patch is absolute,
|
||||
not additive: everything named is set to the value given (`null` clears `height` and `label`), and
|
||||
a `preset` replaces the whole switch set, so `preset:"door"` on a window turns it into a closed
|
||||
opaque door, and `preset:"window"` sets `player_marker:true` as part of the expansion. `open` is
|
||||
not a patch field: it belongs to `door.set`, and an `open` field in `wall.update` is an unknown
|
||||
field (ignored, 6.2; a `preset` carrying `open:true` is `invalid` as above). Fields are checked
|
||||
before the target lookup (6.5 steps 7 then 8), so a fieldless `wall.update` is `invalid` whatever
|
||||
the id.
|
||||
- `wall.update` patches `a`, `b`, `thickness`, `position`, `height`, the switches except `open` (or
|
||||
one `preset`), `label` and `flags`; at least one of them is required, otherwise `invalid`. A patch
|
||||
is absolute, not additive: everything named is set to the value given (`null` clears `height` and
|
||||
`label`), and a `preset` replaces the whole switch set, so `preset:"door"` on a window turns it
|
||||
into a closed opaque door, and `preset:"window"` sets `player_marker:true` as part of the
|
||||
expansion. `open` is not a patch field: it belongs to `door.set`, and an `open` field in
|
||||
`wall.update` is an unknown field (ignored, 6.2; a `preset` carrying `open:true` is `invalid` as
|
||||
above). Fields are checked before the target lookup (6.5 steps 7 then 8), so a fieldless
|
||||
`wall.update` is `invalid` whatever the id.
|
||||
- `id` is an integer; lookup failures are `not-found` (a GM's missing target, 6.5 step 8).
|
||||
`door.set` on a row whose `door` is false is `invalid`, and so is `open:true` on a secret door
|
||||
(5.8) or on a locked door (#46, 5.8).
|
||||
@@ -1445,8 +1445,9 @@ switches, never `thickness`, `position` or `height` (#50).
|
||||
A payload carries `preset` or raw switches, never both (`player_marker` counts as a raw switch).
|
||||
`preset` replaces the whole switch set with its expansion. A raw-switch `wall.add` leaves omitted
|
||||
switches at the `wall` preset default; a raw-switch `wall.update` patches only the switches
|
||||
present (so `{player_marker:false}` turns off a window's marker, and `{door:true, open:true}`
|
||||
turns a fixed window into a closed opening window).
|
||||
present (so `{player_marker:false}` turns off a window's marker, and `{door:true}` turns a fixed
|
||||
window into a closed opening window); `open` in a raw-switch payload is ignored like any unknown
|
||||
field, so a door's open state changes only through `door.set` (6.1 `door.set`).
|
||||
- `kind` is **output only** on the `wall`/`walls` frames: the shape label derived from the switches
|
||||
(5.8), never an input (an input `kind` is an unknown field and is ignored). A `proto` 1 client's
|
||||
`{"kind":"door"}` would silently create a solid wall, which is why the field set changes with
|
||||
|
||||
Reference in New Issue
Block a user