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

chronicle

What the city remembers about this player, and what the paper says about it.

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

chronicle

What the city remembers about this player, and what the paper says about it.

It keeps TALLIES of things that happened (walls signed by tier, Wardens painted out, escapes by level, cars
borrowed, nights without an arrest...), fires each authored MEMORY once when its condition first holds (a
"the city remembers" moment with lasting text and optional rewards), and picks the day's HEADLINE: the
highest-priority authored rule whose condition matches the player's present state, so the newspaper reacts to
what she has been doing. All three are data (content.chronicle); conditions use the mission runner's evaluator
over the tallies and whatever facts the game adds.

  local Chronicle = require("metropolisGame.logic.chronicle")
  local ch = Chronicle.new(ChronicleContent, hub?)
  ch:count("walls_signed")   ch:count("tins_fired", 3)   ch:set("best_escape_level", 3)   ch:max("streak", n)
  ch:tally("walls_signed")                          -- 0 when never counted
  local fired = ch:tick({ rank = 2, ["colour:old_quay"] = 55 })   -- { memoryId, ... } newly remembered (also on the hub)
  ch:remembers("first_masterwork")
  local h = ch:headline(day, facts)                 -- { id, key = "pm_street.headlines.<id>", priority } or nil
  ch:memories()                                     -- { { id, day } } in the order they happened (for a journal)
  ch:serialise()   ch:restore(data)

Hub events: "remembered" { id, rewards }.

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.chronicle — what the city remembers about this player, and what the paper says about it. It keeps TALLIES of things that happened (walls signed by tier, Wardens painted out, escapes by level, cars borrowed, nights without an arrest...), fires each authored MEMORY once when its condition first holds (a "the city remembers" moment with lasting text and optional rewards), and picks the day's HEADLINE: the highest-priority authored rule whose condition matches the player's present state, so the newspaper reacts to what she has been doing. All three are data (content.chronicle); conditions use the mission runner's evaluator over the tallies and whatever facts the game adds. local Chronicle = require("metropolisGame.logic.chronicle") local ch = Chronicle.new(ChronicleContent, hub?) ch:count("walls_signed") ch:count("tins_fired", 3) ch:set("best_escape_level", 3) ch:max("streak", n) ch:tally("walls_signed") -- 0 when never counted local fired = ch:tick({ rank = 2, ["colour:old_quay"] = 55 }) -- { memoryId, ... } newly remembered (also on the hub) ch:remembers("first_masterwork") local h = ch:headline(day, facts) -- { id, key = "pm_street.headlines.<id>.head", deck = "...<id>.deck", priority } or nil ch:memories() -- { { id, day } } in the order they happened (for a journal) ch:serialise() ch:restore(data) Hub events: "remembered" { id, rewards }.

new(content: any, hub: any?) → any

argtypedescription
contentany
hubany?

count(name: string, n: number?) → void

argtypedescription
namestring
nnumber?

set(name: string, value: number) → void

argtypedescription
namestring
valuenumber

max(name: string, value: number) → void

Keep the larger of the tally and a value (a best-ever).

argtypedescription
namestring
valuenumber

tally(name: string) → number

argtypedescription
namestring

remembers(id: string) → boolean

argtypedescription
idstring

facts(self: any, extra: any?) → any

argtypedescription
selfany
extraany?

tick(extra: any?) → void

Fire the memories whose conditions now hold. `extra` are facts beyond the tallies; `extra.day` dates them.

argtypedescription
extraany?

headline(day: number, extra: any?) → any

The day's headline: the matching rule with the highest priority; equals are rotated by the day.

argtypedescription
daynumber
extraany?

memoriesList( ) → void

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.