Files
siegeandClaude Opus 5.5 100edcf0d2 Mods are TOML now (toml++ v3.4.0, MIT, vendored header-only)
[rules], [[power]], [[character]], [roster] with ordered arrays of tables;
line-numbered errors; data/README.md and data/mods/example.toml rewritten;
mods/*.toml auto-load; missing --mod files reported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 12:35:45 -05:00

3.1 KiB
Raw Permalink Blame History

Mod files (TOML)

tbg starts from the original roster and applies every mods/*.toml (in name order, relative to the working directory) and then each --mod FILE, each file on top of the previous result. A file with an error is skipped with a message naming the line. The format is TOML; names are case-insensitive. Example: mods/example.toml.

[rules]

key value default
rounds_to_win integer ≥ 1 2 (best of 3)
crystal_interval every Nth piece is a crystal piece; 0 = never 5
level_costs crystal cost of power levels 1–4, e.g. [1, 2, 3, 4] (the meter caps at the level-4 cost, max 20) [1, 2, 3, 4]
queue "contested" (original: whoever locks first takes the next piece) or "mirrored" (everyone gets the same sequence) VS setup screen
targeting 3–4 players: "all", "next", "random", "highest" (tallest stack), "lowest" VS setup screen
generator randomizer: "original" (never the same piece twice in a row), "bag7" (every 7 pieces contain one of each), "uniform" "original"
weights custom odds per piece, e.g. { I = 3, T = 2, O = 1 } (unlisted pieces never appear); implies a weighted generator —

[[power]] (repeat for each power)

name is required. If it names an existing power, that power is retuned; otherwise a new power is created (starting as the built-in effect of the same name if there is one — otherwise set effect).

key meaning
name the power's name, used in powers = [...]
effect built-in effect: one of the 43 original power names (below); resets the numbers to that effect's
duration status effects: how many pieces it lasts (the victim's or the caster's, as the effect defines)
suspend frames both players are paused for the cast animation
amount effect size, see below

amount means: rows removed/added for Mirurun, Pentris, Fly, HyperFly, Cut, Press, Seesaw; strikes for Stardust; removal chance in sixteenths for Bomb; steps for Mambo; coins stolen for Vampire; previews overwritten for Fever. Other effects ignore it.

Effects: Mirurun Copy Medusa Bomb Mayakashi Pentris Dainashi Fly Noroi Vampire Clear Seesaw Cut Moses Mambo Stardust Reverse Mahi Kaiten Yose Gang Doton Press Sol Suritote Fax Shield Mirror Heavy Select Nu Remocon Hanten Nakayoshi Inori Roulette Fever Change Doubles Dark HyperFly. What each does: re/notes/powers_detail.md.

[[character]] (repeat for each character)

key meaning
name required; an existing name edits that character, a new one adds it
powers four power names for levels 1–4 (required for a new character)
color "#rrggbb" for the player's blocks
boss true: not selectable; fought after the regular characters in 1P, in file order
art an original character's name: use its portrait, cut-in and battle stage (with ROM graphics)

[roster]

replace = true removes all characters defined so far (the originals and earlier mods), so only the characters in this file exist.