secrets
The seven Trapwright secrets: breakableWall, hiddenLever (torch sconce), illusoryWall, slidingShelf (bookshelf or statue), trapdoor, puzzleDoor (opens when its puzzle is solved) and hiddenChest. Opening one the first time marks it found: the finder's machine plays the fanfare and…
dungeonKit.secrets
The seven Trapwright secrets: breakableWall, hiddenLever (torch sconce), illusoryWall, slidingShelf (bookshelf or statue), trapdoor, puzzleDoor (opens when its puzzle is solved) and hiddenChest. Opening one the first time marks it found: the finder's machine plays the fanfare and saves it in runtime_data. Loaded by dungeonKit.api.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2nonstrict dungeonKit.secrets: seven secret kinds. A breakable fake wall, a hidden lever (a torch sconce that sinks a wall panel), an illusory wall you can walk through, a sliding bookshelf or statue, a trapdoor, a puzzle-locked door and a hidden chest. Opening one for the first time marks it found: every machine hears "found", the finder's machine plays the secret fanfare and saves it in that player's runtime_data counter.
at(piece: any, lx: number, ly: number, lz: number) → void
| arg | type | description |
|---|---|---|
| piece | any | |
| lx | number | |
| ly | number | |
| lz | number |
open(piece: any, by: string?, extra: any?) → void
Open a secret (authority): state, sound, found and links.
| arg | type | description |
|---|---|---|
| piece | any | |
| by | string? | |
| extra | any? |
closeIt(piece: any) → void
| arg | type | description |
|---|---|---|
| piece | any |
secretDef(d: any) → any
| arg | type | description |
|---|---|---|
| d | any |
state0(piece: any, o: any) → void
| arg | type | description |
|---|---|---|
| piece | any | |
| o | any |
rewrite(piece: any) → void
| arg | type | description |
|---|---|---|
| piece | any |
applyRewrite(piece: any, key: string, value: any, by: any) → void
| arg | type | description |
|---|---|---|
| piece | any | |
| key | string | |
| value | any | |
| by | any |
sinceOpen(piece: any, t: number, dur: number) → number
| arg | type | description |
|---|---|---|
| piece | any | |
| t | number | |
| dur | number |
playOnOpen(piece: any, patch: any, name: string, lz: number?) → void
| arg | type | description |
|---|---|---|
| piece | any | |
| patch | any | |
| name | string | |
| lz | number? |
wallBlock(root: any, L: any, name: string, w: number, h: number, d: number, pos: { number }) → any
| arg | type | description |
|---|---|---|
| root | any | |
| L | any | |
| name | string | |
| w | number | |
| h | number | |
| d | number | |
| pos | { number } |
state0(piece: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| o | ? |
build(piece: ?, root: ?, L: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| root | ? | |
| L | ? | |
| o | ? |
usable(piece: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? |
use(piece: ?, _a: ?, by: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| _a | ? | |
| by | ? |
onState(piece: ?, h: ?, patch: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| h | ? | |
| patch | ? |
tick(piece: ?, h: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| h | ? | |
| t | ? |
build(piece: ?, root: ?, L: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| root | ? | |
| L | ? | |
| o | ? |
usable(piece: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? |
onState(piece: ?, h: ?, patch: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| h | ? | |
| patch | ? |
tick(piece: ?, h: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| h | ? | |
| t | ? |
build(piece: ?, root: ?, L: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| root | ? | |
| L | ? | |
| o | ? |
host(piece: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| t | ? |
usable(piece: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? |
onState(piece: ?, h: ?, patch: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| h | ? | |
| patch | ? |
tick(piece: ?, h: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| h | ? | |
| t | ? |
build(piece: ?, root: ?, L: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| root | ? | |
| L | ? | |
| o | ? |
usable(piece: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? |
onState(piece: ?, h: ?, patch: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| h | ? | |
| patch | ? |
tick(piece: ?, h: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| h | ? | |
| t | ? |
build(piece: ?, root: ?, L: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| root | ? | |
| L | ? | |
| o | ? |
state0(piece: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| o | ? |
usable(piece: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? |
use(piece: ?, _a: ?, by: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| _a | ? | |
| by | ? |
onState(piece: ?, h: ?, patch: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| h | ? | |
| patch | ? |
tick(piece: ?, h: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| h | ? | |
| t | ? |
build(piece: ?, root: ?, L: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| root | ? | |
| L | ? | |
| o | ? |
host(piece: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| t | ? |
usable(piece: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? |
use(piece: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? |
unlock(piece: ?, _a: ?, by: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| _a | ? | |
| by | ? |
onState(piece: ?, h: ?, patch: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| h | ? | |
| patch | ? |
tick(piece: ?, h: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| h | ? | |
| t | ? |
state0(piece: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| o | ? |
build(piece: ?, root: ?, L: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| root | ? | |
| L | ? | |
| o | ? |
usable(piece: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? |
use(piece: ?, _a: ?, by: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| _a | ? | |
| by | ? |
rewrite(piece: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? |
applyRewrite(piece: ?, key: ?, value: ?, by: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| key | ? | |
| value | ? | |
| by | ? |
onState(piece: ?, h: ?, patch: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| h | ? | |
| patch | ? |
tick(piece: ?, h: ?, t: ?) → void
| arg | type | description |
|---|---|---|
| piece | ? | |
| h | ? | |
| t | ? |
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.