Log inGet started
Package

activities.module

README.md

activities

The replayable work of the city: thirteen activity TYPES, each a small

authored job shape with a real decision in it and a consequence that lasts, and the written VARIANTS of each
(content.activityRows: one row per variant, where it is, for whom, with what numbers).

A type is a template: given a variant's row it builds a job in the mission runner's shape (steps, a `choose`
step, bonus objectives, rewards by choice, fail rewards). The board (logic.board) deals a district's variants
by the day. Text is in the catalog `pm_work`: per type `types.<type>.name`, `.pitch`, `.steps.s<n>`,
`.options.<choice>`, `.done`, `.failed`; per variant `<type>.<district>.<key>.title` and `.brief`.

  local Activities = require("metropolisGame.content.activities")
  Activities.types        -- { { id, unlock, perDay, rest, once? } } in board order
  Activities.variants     -- { variant } built from the rows; each is a job for logic.missionRunner
  Activities.byId(id)     -- a variant by id ("<type>_<district>_<key>")
  Activities.sites        -- named mural sites the variants need ({ [name] = { district, size, design, near, permit, carrier } })
  Activities.ofType("getaway")   Activities.count()   -- { [type] = { [district] = n } }

Type fields: unlock (Runner.meets requirements), perDay (variants a district shows a day), rest (days a variant
rests after it is done or failed), once (a collectible: never again once done).
Row fields (content.activityRows): { type, district, key, ...numbers and places the type's template reads }.
Every type's template is documented where it is defined below: what the row may carry, the decision, and what
each outcome changes for good.

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