Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld 0a0b119f-a…

board

The activity board: which replayable jobs a district offers today, running one,

byzero-proxy @ DESKTOP-DB3UJOJ·posted 11d ago
What it does

board

The activity board: which replayable jobs a district offers today, running one,

and remembering what was done so the board changes.

An activity TYPE (content.activities.types) says what unlocks it and how many of its variants a district shows
a day. A VARIANT is a small authored job in the mission runner's shape (steps, a decision, bonus objectives,
rewards by choice, fail rewards): written, not generated. The board deals the day's offers from the variants
that are unlocked and rested, by a shuffle seeded from the day, the type and the district, so the same day
always offers the same jobs and tomorrow offers others. Finishing or failing a variant rests it for its type's
`rest` days; a variant marked `once` (a collectible) never comes back once done.

  local Board = require("metropolisGame.logic.board")
  local board = Board.new(Activities, hub?, seed)          -- content.activities
  board:offers(day, progress, "old_quay")   -- { { id, type, district, giver } } today's jobs there (all districts when nil)
  board:open(typeId, progress)              -- whether a type is unlocked
  board:start(id, day)                      -- ok, why ("unknown" | "busy" | "resting" | "done" | "locked")
  board.runner                              -- the mission runner running the active variant (tick / event / choose)
  board:active()                            -- the running variant's id, or nil
  board:count(id)   board:countType("getaway")   -- times completed
  board:view(day, progress, district)       -- { { id, type, district, giver, state = "offered" | "active" } }
  board:serialise()   board:restore(data)

`progress` is the mission runner's progress summary (Runner.meets). Hub events are the runner's with the name
"activity" ("activityStarted", "activityStep", "activityChose", "activityDone", "activityFailed", ...); the board
records the day itself by listening to them.

The interface is documented in the header of init.luau; this file repeats it for the asset browser.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

metropolisGame.logic.board — the activity board: which replayable jobs a district offers today, running one, and remembering what was done so the board changes. An activity TYPE (content.activities.types) says what unlocks it and how many of its variants a district shows a day. A VARIANT is a small authored job in the mission runner's shape (steps, a decision, bonus objectives, rewards by choice, fail rewards): written, not generated. The board deals the day's offers from the variants that are unlocked and rested, by a shuffle seeded from the day, the type and the district, so the same day always offers the same jobs and tomorrow offers others. Finishing or failing a variant rests it for its type's `rest` days; a variant marked `once` (a collectible) never comes back once done. local Board = require("metropolisGame.logic.board") local board = Board.new(Activities, hub?, seed) -- content.activities board:offers(day, progress, "old_quay") -- { { id, type, district, giver, titleKey, briefKey } } today's jobs there (all districts when nil) board:open(typeId, progress) -- whether a type is unlocked board:start(id, day) -- ok, why ("unknown" | "busy" | "resting" | "done" | "locked") board.runner -- the mission runner running the active variant (tick / event / choose) board:active() -- the running variant's id, or nil board:count(id) board:countType("getaway") -- times completed board:view(day, progress, district) -- { { id, type, district, giver, titleKey, briefKey, state = "offered" | "active" } } board:serialise() board:restore(data) `progress` is the mission runner's progress summary (Runner.meets). Hub events are the runner's with the name "activity" ("activityStarted", "activityStep", "activityChose", "activityDone", "activityFailed", ...); the board records the day itself by listening to them.

new(activities: any, hub: any?, seed: number?) → any

argtypedescription
activitiesany
hubany?
seednumber?

open(typeId: string, progress: any) → boolean

Whether an activity type is unlocked for a progress summary.

argtypedescription
typeIdstring
progressany

rested(self: any, v: any, day: number) → boolean

argtypedescription
selfany
vany
daynumber

offers(day: number, progress: any, district: string?) → void

Today's offers in a district (every district when nil), type order then deal order.

argtypedescription
daynumber
progressany
districtstring?

active( ) → string

start(id: string, day: number, progress: any?) → void

Start a variant. Returns ok, why.

argtypedescription
idstring
daynumber
progressany?

count(id: string) → number

argtypedescription
idstring

countType(typeId: string) → number

argtypedescription
typeIdstring

view(day: number, progress: any, district: string?) → void

The board for a screen: today's offers plus the running one.

argtypedescription
daynumber
progressany
districtstring?

serialise( ) → any

restore(data: any) → void

argtypedescription
dataany

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ 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".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.