Changelog
tilttek/character-sheetAll 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 functionsabs,min,maxandclamp; 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 oftilttek/rpg-systems, up to 200 derived values whose formulas read the level, the attributes, the other derived values andgear.<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\RuleBookandRules\StaticRuleBook: the rules of each system an application knows.CharacterSheetandItem: 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\ComputedSheetandView\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, astilttek/conditionsand 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,CampaignLeftandSheetDeleted, by identifiers only, told once to aContract\SheetObserver. Contract\SheetStore, kept at a version, andStore\InMemorySheetStorefor tests.- The exceptions
InvalidSheet,InvalidFormula,SheetRefused,SheetNotFoundandSheetConflict, underCharacterSheetException. - 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.mdandCODE_OF_CONDUCT.md.