lookInfo( ) → any return M
myGachaKey( ) → string
Bonks live in each player's own progress profile, which only their own machine can change. The authority can move
its own player's Bonks; another player's Bonks pulls / spins are refused with a reason (they pay with tickets).
spend(key: string, amount: number) → void
| arg | type | description |
|---|
| key | string | |
| amount | number | |
grant(key: string, amount: number) → void
| arg | type | description |
|---|
| key | string | |
| amount | number | |
balance(key: string) → void
| arg | type | description |
|---|
| key | string | |
format(n: number) → void
| arg | type | description |
|---|
| n | number | |
spend(peer: number, amount: number) → void
| arg | type | description |
|---|
| peer | number | |
| amount | number | |
grant(peer: number, amount: number) → void
| arg | type | description |
|---|
| peer | number | |
| amount | number | |
canAfford(peer: number, amount: number) → void
| arg | type | description |
|---|
| peer | number | |
| amount | number | |
balance(peer: number) → void
| arg | type | description |
|---|
| peer | number | |
parse(item: string) → void
| arg | type | description |
|---|
| item | string | |
syncUnlocks( ) → number
every tumbler and outfit in this player's collection is unlocked in the roster (repeatable, idempotent)
toyBoost(kind: string) → number
How much more often a toy kind shows up on the stair for this player: 1 (not pulled), 1.6 once pulled, +0.2 per extra level (max 2.4 at level 5).
| arg | type | description |
|---|
| kind | string | |
toyWeights(base: { [string]: number }) → void
A courseToys `weights` table for Toys.populate: each kind's base weight times toyBoost(kind). `base` = { [kind] = weight } (the kit's defaults).
| arg | type | description |
|---|
| base | { [string]: number } | |
charBonus(charId: string) → number
Extra Bonks a pulled tumbler earns when it tumbles: 1 + 0.1 per level past the first (duplicate pulls), 1 when never pulled.
| arg | type | description |
|---|
| charId | string | |
boost( ) → any
The boost waiting for this player's next run: { bonksMul (x Bonks, 1 = none), shoves (extra shoves) }. Also mirrored in Bus.state.prizeBoost.
consumeBoost( ) → any
Take the waiting boost for the run that starts now (clears it): { bonksMul, shoves }.
addBoost(id: string) → void
| arg | type | description |
|---|
| id | string | |
ticketsFor(result: any) → number
Prize Tickets a run result earns: 1 + floor(distance / 50) + floor(snaps / 3), times (1 + Ticket Printer stat), rounded down.
| arg | type | description |
|---|
| result | any | |
grantTickets(n: number, reason: string?, cb: ((any) → void
Give this player tickets: on the authority straight through the bank, otherwise through economyKit's clientGrants rule "arcadeRun".
| arg | type | description |
|---|
| n | number | |
| reason | string? | |
| cb | ((any | |
onRunEnd(result: any) → void
| arg | type | description |
|---|
| result | any | |
stat(name: string) → number
| arg | type | description |
|---|
| name | string | |
setPresentation(p: string) → void
| arg | type | description |
|---|
| p | string | |
nextPresentation( ) → string
onReward(_peer: number, _reward: any) → void
| arg | type | description |
|---|
| _peer | number | |
| _reward | any | |
modifiers(peer: number) → void
| arg | type | description |
|---|
| peer | number | |
attachMain( ) → void
For the main scene: listen for run ends (tickets) on the game bus. Call after Bus.reset().
balances( ) → any
This player's balances the arcade shows: { tickets, shards, bonks }.
travel(sceneId: string) → void
Switch the root scene (the arcade <-> the stair) from a UI callback. The load runs as a system task, not as
| arg | type | description |
|---|
| sceneId | string | |