tree
Lays an upgrade shop out as a tree, as plain data: `layout(defs, { style = "columns" | "radial" })` gives each upgrade a grid position (a column band per `category`, a row per prerequisite depth, nodes ordered under their parents and exclusive options kept side by side), the edge…
tree (incrementalKit)
Lays an upgrade shop out as a tree, as plain data: layout(defs, { style = "columns" | "radial" }) gives each upgrade a grid position (a column band per category, a row per prerequisite depth, nodes ordered under their parents and exclusive options kept side by side), the edges from every requires = { upgrade = ... } prerequisite, the bands and the exclusive groups; neighbor(t, id, "up" | "down" | "left" | "right") is the node a d-pad moves to (nearest that way, edges count as nearer); parentsOf(def) lists an upgrade's upgrade prerequisites. Used by incrementalKit.ui's tree shop (layout = "tree"); usable alone by a game drawing its own tree.
Scoped to this part · feeds back into the world's score.