Skip to content

Changelog

tilttek/character-sheet

Français

All notable changes to tilttek/character-sheet will be documented in this file.

Updates should follow the Keep a CHANGELOG principles.

0.1.0-alpha - 2026-11-29

Added

  • Formula: a whole-number formula of numbers, names, +, -, *, / rounded down, signs, parentheses and the functions abs, min, max and clamp; 256 bytes, 16 levels of nesting and 64 operands at most, every value read or reached within -1 000 000 000 000 and 1 000 000 000 000, refused rather than wrapped; its names, its value and its canonical text, never longer than the text read.
  • SheetRules: the rules of a game system of tilttek/rpg-systems, up to 200 derived values whose formulas read the level, the attributes, the other derived values and gear.<stat>, ordered so that each comes after those it reads, refused in a loop or when they read an unknown name; up to 32 pools; a highest level of 1 to 1 000.
  • Contract\RuleBook and Rules\StaticRuleBook: the rules of each system an application knows.
  • CharacterSheet and Item: a sheet kept by its owner outside any campaign, with up to 64 attributes, a level, up to 500 items — each with a quantity, equipped or not, giving to up to 16 stats —, the charges spent from each pool, and the fields of up to 32 campaigns, 64 each, texts, whole numbers or booleans; bounded and checked, compared strictly.
  • SheetCalculator, View\ComputedSheet and View\Pool: a sheet computed by its rules, with adjustments to its attributes counted before anything is derived, each value by the name a formula reads, as tilttek/conditions and an inventory's carrying capacity read them.
  • CharacterSheets: a sheet created with every attribute of its system within its bounds; renamed; an attribute or the level set within the rules; items put, equipped and removed; 1 to 1 000 charges spent or restored at once, never more than are left; campaigns joined and left, the fields of a campaign set and erased with it; a sheet erased; a change that changes nothing keeps and tells nothing; no state kept between calls.
  • The events SheetCreated, SheetChanged, CampaignJoined, CampaignLeft and SheetDeleted, by identifiers only, told once to a Contract\SheetObserver.
  • Contract\SheetStore, kept at a version, and Store\InMemorySheetStore for tests.
  • The exceptions InvalidSheet, InvalidFormula, SheetRefused, SheetNotFound and SheetConflict, under CharacterSheetException.
  • A fuzz target of the formulas, and a benchmark of a full sheet, of the rules of a system and of one formula.
  • The documentation in doc/, one file per topic, indexed by the README.
  • CONTRIBUTING.md, SECURITY.md and CODE_OF_CONDUCT.md.