siege_config
A module script.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2siege_config — every tunable number and content table for Trebuchet Castle Siege, in one place. local C = require("siege_config") C.AMMO[C.AMMO_ORDER[1]].mass -- boulder mass in kg C.LEVELS[3].name -- "Twin Towers" Nothing here spawns or mutates anything: it is pure data the game component and the castle builder read.
palette(colorblind: boolean) →
The palette table for the current colourblind setting.
| arg | type | description |
|---|---|---|
| colorblind | boolean | Whether the colourblind-safe palette is wanted. |
examples
local p = require("siege_config").palette(false)stars(shots: number, par: number) → number
Star rating for a completed siege, from shots used against par.
| arg | type | description |
|---|---|---|
| shots | number | Shots actually spent. |
| par | number | The level's par shot count. |
examples
require("siege_config").stars(7, 8)Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ 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".
Scoped to this part · feeds back into the world's score.