metropolisGame.content.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 `titleKey` and `briefKey` (by default
`pm_work.<type>.<district>.<key>.title` / `.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.
near(place: string) → any
| arg | type | description |
|---|
| place | string | |
commission(v: any, r: any) → void
COMMISSION: a legal shopfront for sous. Quality is the whole score. Row: near (place), size, design, pay
(trust for the client's district contact), inspector (bool: one turns up asking for the permit).
Decision when the inspector comes: pay him off (sous, clean), argue and finish before he is back with a Warden
(a clock, and heat if it runs out), or walk away (unpaid; the street remembers an unfinished wall).
| arg | type | description |
|---|
| v | any | |
| r | any | |
scrub_call(v: any, r: any) → void
SCRUB CALL: a crew is coming for the oldest wall she signed in the district. Row: seconds (notice), vans (1 or
2), escort (bool: a patrol car rides with it). Decision: stop it (block the road, paint the windscreen, foul
the tank: each its own offence and cost), or let it go and repaint the wall better (the district's colour dips
until she does; a repainted wall counts again).
| arg | type | description |
|---|
| v | any | |
| r | any | |
study(v: any, r: any) → void
STUDY: Odile wants a landmark drawn from three places; the sketch becomes a design. Row: views = { place,
place, place }, design. Decision at the end: keep the sketch (the design is hers to paint; Odile's trust) or
sell it to Aurore's gallery (sous now; the design turns up as other people's commissions and is no longer new).
| arg | type | description |
|---|
| v | any | |
| r | any | |
roof_line(v: any, r: any) → void
ROOF LINE: one of Ines's marked routes over the roofs. Row: from, to (places), via = { place, ... }, seconds.
Touch the ground before the end and it is over. Decision at the end: chalk the route for the crew (it shows
on everyone's map and Ines's trust rises, and after a few chases the Wardens post a man at its foot) or keep
it to herself (hers alone, and it stays unwatched).
| arg | type | description |
|---|
| v | any | |
| r | any | |
paint_run(v: any, r: any) → void
PAINT RUN: Rook's deliveries: open tubs in the van, a clock, checkpoints. Row: from, to (places), seconds, pay.
Decision before she sets off: the main road (short, and it is where the Wardens check vans) or the back
streets (long, corners that spill). Spilled paint is paint not delivered: pay follows the load.
| arg | type | description |
|---|
| v | any | |
| r | any | |
box_round(v: any, r: any) → void
BOX ROUND: Teo's list: jam every call box on a street in one unbroken pass, unreported. Row: street (place),
boxes (n), seconds. Decision at the end: have Teo log them as faults (they stay dead two days, Teo's trust;
a repair crew then comes with an escort) or leave them (dead until morning; nobody connects it to her).
| arg | type | description |
|---|
| v | any | |
| r | any | |
getaway(v: any, r: any) → void
GETAWAY CONTRACT: somebody else's crew needs a driver. Row: crew (a name key), from, to (places), cars = {
vehicle type, ... } (what stands ready), heat (the level the job starts at), pay. Decisions before the engine
starts: which vehicle, and which way (the plan screen shows the road blocks that WILL stand). Pay falls with
every level of heat above the start and with paint on the car.
| arg | type | description |
|---|
| v | any | |
| r | any | |
tram_tagging(v: any, r: any) → void
TRAM TAGGING: paint a moving tram along its route. Row: line (a name key), from, to (tram stops), size, design,
seconds (the ride). Decision: from the back platform (in reach, in front of the passengers) or from the roofs
it passes (unseen, and only where the roofs are). The piece then travels the city for three days and earns
renown wherever it is seen; a Rough one is scrubbed at the depot the first night.
| arg | type | description |
|---|
| v | any | |
| r | any | |
colour_war(v: any, r: any) → void
COLOUR WAR: the Limewash Boys claim a wall she holds. Row: near (place), size, design, rival (a name key).
Decision: out-paint them live (a race on the wall; winning takes their nerve, losing takes the wall), bargain
(Sable takes a cut of the district's stipend and leaves the walls alone for a month), or tip off the Wardens
(the Boys vanish for a week; so does the crew's trust, and the Wardens now know that wall).
| arg | type | description |
|---|
| v | any | |
| r | any | |
impound_break(v: any, r: any) → void
IMPOUND BREAK: what was confiscated stands in the Greywood fort. Row: item ("van" | "ladder" | "stash"), fee.
Decision: sneak it out (on foot through the yard, unseen or not at all), drive it out (through the gate, with
the fort's cars behind her), or pay (the fee, in the morning, at the window). What was taken is really gone
until one of the three is done; after seven days it is sold.
| arg | type | description |
|---|
| v | any | |
| r | any | |
night_ferry(v: any, r: any) → void
NIGHT FERRY: pigment across the estuary by skiff, at night, under the searchlights. Row: from, to (piers),
tins, seconds. Decision at the quay: a light boat (half the tins, quick between the beams) or a heavy one
(all of them, slow). Caught in a beam the harbour launch comes; what is on board is lost.
| arg | type | description |
|---|
| v | any | |
| r | any | |
sketch(v: any, r: any) → void
SKETCH (a collectible, once): a viewpoint to draw from, or a stencil somebody lost. Row: at (place), gives =
"design" | "tram_pass" | "stencil", design (for a design). No decision: finding it is the play.
| arg | type | description |
|---|
| v | any | |
| r | any | |
warden_shift(v: any, r: any) → void
WARDEN SHIFT: one named Warden, off duty, at a place Teo names. Row: warden (content.wardens id), at (place).
Decision: pay him (his price: his beat goes unwatched one weekday a week), lean on him with what is in his
file (free, if she holds the file), or walk away. Each time she relies on it there is a chance it is found
out; then the beat is doubled for five days and he never deals again.
| arg | type | description |
|---|
| v | any | |
| r | any | |
byId(id: string) → any
| arg | type | description |
|---|
| id | string | |
ofType(type_: string) → void
| arg | type | description |
|---|
| type_ | string | |
count( ) → any
How many variants there are: { [type] = { [district] = n } }.