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

party

Several suspects in one world: heat stays each one's own, shared when they act together.

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

party

Several suspects in one world: heat stays each one's own, shared when they act together.

Every suspect has a director of its own (its own awareness, heat, incident, arrest). The party joins them with
one rule: suspects standing within cfg.party.radius of each other are ACTING TOGETHER, so an offence one of
them is charged with also charges the others a share of its points, and a report that lands on one opens the
others' eyes to where it happened. Apart, nothing one does touches another.

  local Party = require("~.modules.party")
  local party = Party.new(cfg.party)
  party:join("p1", director1)   party:join("p2", director2)   party:leave("p2")
  party:place("p1", x, z)                       -- where each suspect is (every tick)
  party:together("p1")                          -- ids acting with p1 now, sorted (p1 itself excluded)
  local shared = party:charge("p1", "paintGuard", 15)
  -- p1 was charged 15 points for an offence: accomplices get cfg.share of them; returns { [id] = points }
  party:reported("p1", x, z)                    -- a report on p1 landed there: accomplices' pursuers are told
                                                -- the place too (their incidents get the report without heat)
  party:members()                               -- ids, sorted

Config (cfg.party): radius (metres), share (0..1 of an accomplice's offence points).

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

pursuitKit.modules.party — several suspects in one world: heat stays each one's own, shared when they act together. Every suspect has a director of its own (its own awareness, heat, incident, arrest). The party joins them with one rule: suspects standing within cfg.party.radius of each other are ACTING TOGETHER, so an offence one of them is charged with also charges the others a share of its points, and a report that lands on one opens the others' eyes to where it happened. Apart, nothing one does touches another. local Party = require("~.modules.party") local party = Party.new(cfg.party) party:join("p1", director1) party:join("p2", director2) party:leave("p2") party:place("p1", x, z) -- where each suspect is (every tick) party:together("p1") -- ids acting with p1 now, sorted (p1 itself excluded) local shared = party:charge("p1", "paintGuard", 15) -- p1 was charged 15 points for an offence: accomplices get cfg.share of them; returns { [id] = points } party:reported("p1", x, z) -- a report on p1 landed there: accomplices' pursuers are told -- the place too (their incidents get the report without heat) party:members() -- ids, sorted Config (cfg.party): radius (metres), share (0..1 of an accomplice's offence points).

new(cfg: any) → any

argtypedescription
cfgany

join(id: string, director: any) → void

argtypedescription
idstring
directorany

leave(id: string) → void

argtypedescription
idstring

members( ) → void

place(id: string, x: number, z: number) → void

argtypedescription
idstring
xnumber
znumber

together(id: string) → void

The suspects acting together with one (within the radius), sorted by id.

argtypedescription
idstring

charge(id: string, offence: string, points: number) → void

One suspect was charged `points` for an offence: its accomplices get their share. Returns what each was given.

argtypedescription
idstring
offencestring
pointsnumber

reported(id: string, x: number, z: number) → void

A report on one suspect landed at a place: its accomplices' incidents learn the place (no heat of their own).

argtypedescription
idstring
xnumber
znumber

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.