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

Rules

<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->

by◐princekumar·posted 1mo ago
What it does

Rules

<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->

TODO: describe this module.

Interface

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

conforms to

zero/source-extract/v2

game/Rules.module — Battle Zone: Survival THE shared module: every constant and every rule the game is played by. It holds no entities and touches no scene — it is pure data and pure functions, so any slice can require it and read the same numbers. Owned by the plan pass. Slices READ this; they do not edit it. Anything a slice needs that is not here belongs in that slice's own module.

weapon(id: ?) → void

argtypedescription
id?

attachment(id: ?) → void

argtypedescription
id?

weaponWith(weaponId: ?, attachmentIds: ?) → void

Apply a set of attachments to a weapon, returning a COPY. Nothing here mutates the shared definition.

argtypedescription
weaponId?
attachmentIds?

damageAt(weapon: ?, distance: ?, part: ?) → void

Damage one projectile of `weapon` does to `part` at `distance` metres. Pure, and the same answer for the player and for a bot.

argtypedescription
weapon?
distance?
part?

secondsBetweenShots(weapon: ?) → void

argtypedescription
weapon?

item(id: ?) → void

argtypedescription
id?

zonePhaseCount( ) → void

xpToLevel(level: ?) → void

argtypedescription
level?

xp(r: ?) → void

what a finished match banks

argtypedescription
r?

coins(r: ?) → void

argtypedescription
r?

clamp01(v: ?) → void

Small shared helpers

argtypedescription
v?

curveAt(points: ?, t: ?) → void

Linear interpolation over a schedule of {t, value} pairs.

argtypedescription
points?
t?

rng(seed: ?) → void

A seeded, reproducible RNG so a match can be replayed from its seed.

argtypedescription
seed?

next( ) → void

range(a: ?, b: ?) → void

argtypedescription
a?
b?

int(a: ?, b: ?) → void

argtypedescription
a?
b?

pick(list: ?) → void

argtypedescription
list?

chance(p: ?) → void

argtypedescription
p?

weighted(list: ?, weightOf: ?) → void

weighted pick over a list of { weight = n, ... }

argtypedescription
list?
weightOf?

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

3items
This part has no composite children. See the Files segment for its leaf payloads.
backing path · game/Rules.module

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.